{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 27,
   "metadata": {},
   "outputs": [],
   "source": [
    "%matplotlib inline\n",
    "import pandas as pd\n",
    "import tushare as ts"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style>\n",
       "    .dataframe thead tr:only-child th {\n",
       "        text-align: right;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: left;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>open</th>\n",
       "      <th>high</th>\n",
       "      <th>close</th>\n",
       "      <th>low</th>\n",
       "      <th>volume</th>\n",
       "      <th>price_change</th>\n",
       "      <th>p_change</th>\n",
       "      <th>ma5</th>\n",
       "      <th>ma10</th>\n",
       "      <th>ma20</th>\n",
       "      <th>v_ma5</th>\n",
       "      <th>v_ma10</th>\n",
       "      <th>v_ma20</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>date</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>2018-01-02</th>\n",
       "      <td>2.86</td>\n",
       "      <td>2.91</td>\n",
       "      <td>2.91</td>\n",
       "      <td>2.86</td>\n",
       "      <td>4776970.00</td>\n",
       "      <td>0.05</td>\n",
       "      <td>1.75</td>\n",
       "      <td>2.870</td>\n",
       "      <td>2.875</td>\n",
       "      <td>2.868</td>\n",
       "      <td>5108968.20</td>\n",
       "      <td>4969266.33</td>\n",
       "      <td>5051746.58</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-03</th>\n",
       "      <td>2.91</td>\n",
       "      <td>2.95</td>\n",
       "      <td>2.91</td>\n",
       "      <td>2.91</td>\n",
       "      <td>5708743.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>2.874</td>\n",
       "      <td>2.879</td>\n",
       "      <td>2.868</td>\n",
       "      <td>5265180.70</td>\n",
       "      <td>5021250.08</td>\n",
       "      <td>4890998.78</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-04</th>\n",
       "      <td>2.91</td>\n",
       "      <td>2.93</td>\n",
       "      <td>2.92</td>\n",
       "      <td>2.91</td>\n",
       "      <td>3084130.75</td>\n",
       "      <td>0.01</td>\n",
       "      <td>0.34</td>\n",
       "      <td>2.892</td>\n",
       "      <td>2.883</td>\n",
       "      <td>2.871</td>\n",
       "      <td>4165531.45</td>\n",
       "      <td>4922446.00</td>\n",
       "      <td>4812177.54</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-05</th>\n",
       "      <td>2.92</td>\n",
       "      <td>2.94</td>\n",
       "      <td>2.93</td>\n",
       "      <td>2.92</td>\n",
       "      <td>3220088.25</td>\n",
       "      <td>0.01</td>\n",
       "      <td>0.34</td>\n",
       "      <td>2.906</td>\n",
       "      <td>2.887</td>\n",
       "      <td>2.875</td>\n",
       "      <td>3906197.70</td>\n",
       "      <td>4670167.18</td>\n",
       "      <td>4674675.88</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-08</th>\n",
       "      <td>2.93</td>\n",
       "      <td>2.95</td>\n",
       "      <td>2.94</td>\n",
       "      <td>2.93</td>\n",
       "      <td>3125531.00</td>\n",
       "      <td>0.01</td>\n",
       "      <td>0.34</td>\n",
       "      <td>2.922</td>\n",
       "      <td>2.893</td>\n",
       "      <td>2.879</td>\n",
       "      <td>3983092.60</td>\n",
       "      <td>4572603.20</td>\n",
       "      <td>4586422.63</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-09</th>\n",
       "      <td>2.94</td>\n",
       "      <td>2.97</td>\n",
       "      <td>2.97</td>\n",
       "      <td>2.94</td>\n",
       "      <td>3097112.50</td>\n",
       "      <td>0.03</td>\n",
       "      <td>1.02</td>\n",
       "      <td>2.934</td>\n",
       "      <td>2.902</td>\n",
       "      <td>2.882</td>\n",
       "      <td>3647121.10</td>\n",
       "      <td>4378044.65</td>\n",
       "      <td>4547755.30</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-10</th>\n",
       "      <td>2.97</td>\n",
       "      <td>3.00</td>\n",
       "      <td>3.00</td>\n",
       "      <td>2.96</td>\n",
       "      <td>4779057.00</td>\n",
       "      <td>0.03</td>\n",
       "      <td>1.01</td>\n",
       "      <td>2.952</td>\n",
       "      <td>2.913</td>\n",
       "      <td>2.890</td>\n",
       "      <td>3461183.90</td>\n",
       "      <td>4363182.30</td>\n",
       "      <td>4589627.24</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-11</th>\n",
       "      <td>2.99</td>\n",
       "      <td>3.01</td>\n",
       "      <td>2.99</td>\n",
       "      <td>2.98</td>\n",
       "      <td>3227392.75</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>2.966</td>\n",
       "      <td>2.929</td>\n",
       "      <td>2.896</td>\n",
       "      <td>3489836.30</td>\n",
       "      <td>3827683.88</td>\n",
       "      <td>4479297.18</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-12</th>\n",
       "      <td>2.99</td>\n",
       "      <td>3.02</td>\n",
       "      <td>3.02</td>\n",
       "      <td>2.99</td>\n",
       "      <td>3187761.75</td>\n",
       "      <td>0.03</td>\n",
       "      <td>1.00</td>\n",
       "      <td>2.984</td>\n",
       "      <td>2.945</td>\n",
       "      <td>2.904</td>\n",
       "      <td>3483371.00</td>\n",
       "      <td>3694784.35</td>\n",
       "      <td>4410339.59</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-15</th>\n",
       "      <td>3.02</td>\n",
       "      <td>3.07</td>\n",
       "      <td>3.04</td>\n",
       "      <td>3.02</td>\n",
       "      <td>5852667.00</td>\n",
       "      <td>0.02</td>\n",
       "      <td>0.66</td>\n",
       "      <td>3.004</td>\n",
       "      <td>2.963</td>\n",
       "      <td>2.915</td>\n",
       "      <td>4028798.20</td>\n",
       "      <td>4005945.40</td>\n",
       "      <td>4476825.91</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-16</th>\n",
       "      <td>3.04</td>\n",
       "      <td>3.07</td>\n",
       "      <td>3.06</td>\n",
       "      <td>3.03</td>\n",
       "      <td>4702502.00</td>\n",
       "      <td>0.02</td>\n",
       "      <td>0.66</td>\n",
       "      <td>3.022</td>\n",
       "      <td>2.978</td>\n",
       "      <td>2.927</td>\n",
       "      <td>4349876.10</td>\n",
       "      <td>3998498.60</td>\n",
       "      <td>4483882.46</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-17</th>\n",
       "      <td>3.06</td>\n",
       "      <td>3.13</td>\n",
       "      <td>3.07</td>\n",
       "      <td>3.06</td>\n",
       "      <td>8383916.00</td>\n",
       "      <td>0.01</td>\n",
       "      <td>0.33</td>\n",
       "      <td>3.036</td>\n",
       "      <td>2.994</td>\n",
       "      <td>2.937</td>\n",
       "      <td>5070847.90</td>\n",
       "      <td>4266015.90</td>\n",
       "      <td>4643632.99</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-18</th>\n",
       "      <td>3.09</td>\n",
       "      <td>3.12</td>\n",
       "      <td>3.11</td>\n",
       "      <td>3.08</td>\n",
       "      <td>6123523.50</td>\n",
       "      <td>0.04</td>\n",
       "      <td>1.30</td>\n",
       "      <td>3.060</td>\n",
       "      <td>3.013</td>\n",
       "      <td>2.948</td>\n",
       "      <td>5650074.05</td>\n",
       "      <td>4569955.18</td>\n",
       "      <td>4746200.59</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-19</th>\n",
       "      <td>3.12</td>\n",
       "      <td>3.14</td>\n",
       "      <td>3.11</td>\n",
       "      <td>3.10</td>\n",
       "      <td>7679212.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>3.078</td>\n",
       "      <td>3.031</td>\n",
       "      <td>2.959</td>\n",
       "      <td>6548364.10</td>\n",
       "      <td>5015867.55</td>\n",
       "      <td>4843017.36</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-22</th>\n",
       "      <td>3.10</td>\n",
       "      <td>3.14</td>\n",
       "      <td>3.13</td>\n",
       "      <td>3.09</td>\n",
       "      <td>6080783.00</td>\n",
       "      <td>0.02</td>\n",
       "      <td>0.64</td>\n",
       "      <td>3.096</td>\n",
       "      <td>3.050</td>\n",
       "      <td>2.972</td>\n",
       "      <td>6593987.30</td>\n",
       "      <td>5311392.75</td>\n",
       "      <td>4941997.98</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-23</th>\n",
       "      <td>3.14</td>\n",
       "      <td>3.18</td>\n",
       "      <td>3.17</td>\n",
       "      <td>3.14</td>\n",
       "      <td>9355639.00</td>\n",
       "      <td>0.04</td>\n",
       "      <td>1.28</td>\n",
       "      <td>3.118</td>\n",
       "      <td>3.070</td>\n",
       "      <td>2.986</td>\n",
       "      <td>7524614.70</td>\n",
       "      <td>5937245.40</td>\n",
       "      <td>5157645.03</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-24</th>\n",
       "      <td>3.18</td>\n",
       "      <td>3.20</td>\n",
       "      <td>3.17</td>\n",
       "      <td>3.15</td>\n",
       "      <td>8496426.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>3.138</td>\n",
       "      <td>3.087</td>\n",
       "      <td>3.000</td>\n",
       "      <td>7547116.70</td>\n",
       "      <td>6308982.30</td>\n",
       "      <td>5336082.30</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-25</th>\n",
       "      <td>3.17</td>\n",
       "      <td>3.17</td>\n",
       "      <td>3.15</td>\n",
       "      <td>3.12</td>\n",
       "      <td>6424868.50</td>\n",
       "      <td>-0.02</td>\n",
       "      <td>-0.63</td>\n",
       "      <td>3.146</td>\n",
       "      <td>3.103</td>\n",
       "      <td>3.016</td>\n",
       "      <td>7607385.70</td>\n",
       "      <td>6628729.88</td>\n",
       "      <td>5228206.88</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-26</th>\n",
       "      <td>3.15</td>\n",
       "      <td>3.20</td>\n",
       "      <td>3.17</td>\n",
       "      <td>3.14</td>\n",
       "      <td>5974380.50</td>\n",
       "      <td>0.02</td>\n",
       "      <td>0.64</td>\n",
       "      <td>3.158</td>\n",
       "      <td>3.118</td>\n",
       "      <td>3.032</td>\n",
       "      <td>7266419.40</td>\n",
       "      <td>6907391.75</td>\n",
       "      <td>5301088.05</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-29</th>\n",
       "      <td>3.18</td>\n",
       "      <td>3.19</td>\n",
       "      <td>3.12</td>\n",
       "      <td>3.10</td>\n",
       "      <td>7415258.50</td>\n",
       "      <td>-0.05</td>\n",
       "      <td>-1.58</td>\n",
       "      <td>3.156</td>\n",
       "      <td>3.126</td>\n",
       "      <td>3.045</td>\n",
       "      <td>7533314.50</td>\n",
       "      <td>7063650.90</td>\n",
       "      <td>5534798.15</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-30</th>\n",
       "      <td>3.11</td>\n",
       "      <td>3.12</td>\n",
       "      <td>3.07</td>\n",
       "      <td>3.07</td>\n",
       "      <td>4501058.00</td>\n",
       "      <td>-0.04</td>\n",
       "      <td>-1.29</td>\n",
       "      <td>3.136</td>\n",
       "      <td>3.127</td>\n",
       "      <td>3.053</td>\n",
       "      <td>6562398.30</td>\n",
       "      <td>7043506.50</td>\n",
       "      <td>5521002.55</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-31</th>\n",
       "      <td>3.06</td>\n",
       "      <td>3.12</td>\n",
       "      <td>3.11</td>\n",
       "      <td>3.06</td>\n",
       "      <td>5737693.00</td>\n",
       "      <td>0.03</td>\n",
       "      <td>0.97</td>\n",
       "      <td>3.124</td>\n",
       "      <td>3.131</td>\n",
       "      <td>3.063</td>\n",
       "      <td>6010651.70</td>\n",
       "      <td>6778884.20</td>\n",
       "      <td>5522450.05</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-01</th>\n",
       "      <td>3.12</td>\n",
       "      <td>3.14</td>\n",
       "      <td>3.13</td>\n",
       "      <td>3.10</td>\n",
       "      <td>7010665.50</td>\n",
       "      <td>0.02</td>\n",
       "      <td>0.64</td>\n",
       "      <td>3.120</td>\n",
       "      <td>3.133</td>\n",
       "      <td>3.073</td>\n",
       "      <td>6127811.10</td>\n",
       "      <td>6867598.40</td>\n",
       "      <td>5718776.79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-02</th>\n",
       "      <td>3.11</td>\n",
       "      <td>3.15</td>\n",
       "      <td>3.15</td>\n",
       "      <td>3.08</td>\n",
       "      <td>7292157.00</td>\n",
       "      <td>0.02</td>\n",
       "      <td>0.64</td>\n",
       "      <td>3.116</td>\n",
       "      <td>3.137</td>\n",
       "      <td>3.084</td>\n",
       "      <td>6391366.40</td>\n",
       "      <td>6828892.90</td>\n",
       "      <td>5922380.23</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-05</th>\n",
       "      <td>3.11</td>\n",
       "      <td>3.18</td>\n",
       "      <td>3.18</td>\n",
       "      <td>3.10</td>\n",
       "      <td>8264981.00</td>\n",
       "      <td>0.03</td>\n",
       "      <td>0.95</td>\n",
       "      <td>3.128</td>\n",
       "      <td>3.142</td>\n",
       "      <td>3.096</td>\n",
       "      <td>6561310.90</td>\n",
       "      <td>7047312.70</td>\n",
       "      <td>6179352.73</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-06</th>\n",
       "      <td>3.13</td>\n",
       "      <td>3.15</td>\n",
       "      <td>3.11</td>\n",
       "      <td>3.09</td>\n",
       "      <td>17298860.00</td>\n",
       "      <td>-0.07</td>\n",
       "      <td>-2.20</td>\n",
       "      <td>3.136</td>\n",
       "      <td>3.136</td>\n",
       "      <td>3.103</td>\n",
       "      <td>9120871.30</td>\n",
       "      <td>7841634.80</td>\n",
       "      <td>6889440.10</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-07</th>\n",
       "      <td>3.14</td>\n",
       "      <td>3.16</td>\n",
       "      <td>3.02</td>\n",
       "      <td>3.01</td>\n",
       "      <td>13889274.00</td>\n",
       "      <td>-0.09</td>\n",
       "      <td>-2.89</td>\n",
       "      <td>3.118</td>\n",
       "      <td>3.121</td>\n",
       "      <td>3.104</td>\n",
       "      <td>10751187.50</td>\n",
       "      <td>8380919.60</td>\n",
       "      <td>7344950.95</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-08</th>\n",
       "      <td>3.00</td>\n",
       "      <td>3.02</td>\n",
       "      <td>2.94</td>\n",
       "      <td>2.91</td>\n",
       "      <td>12060135.00</td>\n",
       "      <td>-0.08</td>\n",
       "      <td>-2.65</td>\n",
       "      <td>3.080</td>\n",
       "      <td>3.100</td>\n",
       "      <td>3.102</td>\n",
       "      <td>11761081.40</td>\n",
       "      <td>8944446.25</td>\n",
       "      <td>7786588.06</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-09</th>\n",
       "      <td>2.85</td>\n",
       "      <td>2.88</td>\n",
       "      <td>2.80</td>\n",
       "      <td>2.71</td>\n",
       "      <td>18486014.00</td>\n",
       "      <td>-0.14</td>\n",
       "      <td>-4.76</td>\n",
       "      <td>3.010</td>\n",
       "      <td>3.063</td>\n",
       "      <td>3.091</td>\n",
       "      <td>13999852.80</td>\n",
       "      <td>10195609.60</td>\n",
       "      <td>8551500.68</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-12</th>\n",
       "      <td>2.80</td>\n",
       "      <td>2.82</td>\n",
       "      <td>2.80</td>\n",
       "      <td>2.77</td>\n",
       "      <td>7828896.50</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>2.934</td>\n",
       "      <td>3.031</td>\n",
       "      <td>3.079</td>\n",
       "      <td>13912635.90</td>\n",
       "      <td>10236973.40</td>\n",
       "      <td>8650312.15</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-06-26</th>\n",
       "      <td>2.54</td>\n",
       "      <td>2.54</td>\n",
       "      <td>2.52</td>\n",
       "      <td>2.48</td>\n",
       "      <td>6896945.50</td>\n",
       "      <td>-0.03</td>\n",
       "      <td>-1.18</td>\n",
       "      <td>2.574</td>\n",
       "      <td>2.620</td>\n",
       "      <td>2.641</td>\n",
       "      <td>5674436.20</td>\n",
       "      <td>5459952.75</td>\n",
       "      <td>4934872.10</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-06-27</th>\n",
       "      <td>2.52</td>\n",
       "      <td>2.53</td>\n",
       "      <td>2.46</td>\n",
       "      <td>2.45</td>\n",
       "      <td>7526618.50</td>\n",
       "      <td>-0.06</td>\n",
       "      <td>-2.38</td>\n",
       "      <td>2.544</td>\n",
       "      <td>2.597</td>\n",
       "      <td>2.632</td>\n",
       "      <td>6232937.30</td>\n",
       "      <td>5715707.80</td>\n",
       "      <td>5047198.95</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-06-28</th>\n",
       "      <td>2.45</td>\n",
       "      <td>2.48</td>\n",
       "      <td>2.44</td>\n",
       "      <td>2.43</td>\n",
       "      <td>4680164.00</td>\n",
       "      <td>-0.03</td>\n",
       "      <td>-1.22</td>\n",
       "      <td>2.514</td>\n",
       "      <td>2.574</td>\n",
       "      <td>2.624</td>\n",
       "      <td>5939985.80</td>\n",
       "      <td>5865536.95</td>\n",
       "      <td>4976609.78</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-06-29</th>\n",
       "      <td>2.45</td>\n",
       "      <td>2.50</td>\n",
       "      <td>2.49</td>\n",
       "      <td>2.45</td>\n",
       "      <td>5735634.50</td>\n",
       "      <td>0.05</td>\n",
       "      <td>2.05</td>\n",
       "      <td>2.492</td>\n",
       "      <td>2.555</td>\n",
       "      <td>2.616</td>\n",
       "      <td>6058098.60</td>\n",
       "      <td>5935506.50</td>\n",
       "      <td>5006421.05</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-02</th>\n",
       "      <td>2.49</td>\n",
       "      <td>2.49</td>\n",
       "      <td>2.40</td>\n",
       "      <td>2.39</td>\n",
       "      <td>7882834.50</td>\n",
       "      <td>-0.10</td>\n",
       "      <td>-4.00</td>\n",
       "      <td>2.462</td>\n",
       "      <td>2.527</td>\n",
       "      <td>2.604</td>\n",
       "      <td>6544439.40</td>\n",
       "      <td>6286851.85</td>\n",
       "      <td>5228804.86</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-03</th>\n",
       "      <td>2.41</td>\n",
       "      <td>2.42</td>\n",
       "      <td>2.41</td>\n",
       "      <td>2.35</td>\n",
       "      <td>7498297.50</td>\n",
       "      <td>0.01</td>\n",
       "      <td>0.42</td>\n",
       "      <td>2.440</td>\n",
       "      <td>2.507</td>\n",
       "      <td>2.590</td>\n",
       "      <td>6664709.80</td>\n",
       "      <td>6169573.00</td>\n",
       "      <td>5357611.66</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-04</th>\n",
       "      <td>2.40</td>\n",
       "      <td>2.42</td>\n",
       "      <td>2.39</td>\n",
       "      <td>2.38</td>\n",
       "      <td>4279748.50</td>\n",
       "      <td>-0.02</td>\n",
       "      <td>-0.83</td>\n",
       "      <td>2.426</td>\n",
       "      <td>2.485</td>\n",
       "      <td>2.574</td>\n",
       "      <td>6015335.80</td>\n",
       "      <td>6124136.55</td>\n",
       "      <td>5385696.56</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-05</th>\n",
       "      <td>2.39</td>\n",
       "      <td>2.42</td>\n",
       "      <td>2.39</td>\n",
       "      <td>2.37</td>\n",
       "      <td>4806742.50</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>2.416</td>\n",
       "      <td>2.465</td>\n",
       "      <td>2.559</td>\n",
       "      <td>6040651.50</td>\n",
       "      <td>5990318.65</td>\n",
       "      <td>5488546.59</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-06</th>\n",
       "      <td>2.40</td>\n",
       "      <td>2.45</td>\n",
       "      <td>2.42</td>\n",
       "      <td>2.37</td>\n",
       "      <td>7491591.50</td>\n",
       "      <td>0.03</td>\n",
       "      <td>1.25</td>\n",
       "      <td>2.402</td>\n",
       "      <td>2.447</td>\n",
       "      <td>2.546</td>\n",
       "      <td>6391842.90</td>\n",
       "      <td>6224970.75</td>\n",
       "      <td>5637077.41</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-09</th>\n",
       "      <td>2.44</td>\n",
       "      <td>2.50</td>\n",
       "      <td>2.50</td>\n",
       "      <td>2.44</td>\n",
       "      <td>6107861.00</td>\n",
       "      <td>0.07</td>\n",
       "      <td>2.88</td>\n",
       "      <td>2.422</td>\n",
       "      <td>2.442</td>\n",
       "      <td>2.538</td>\n",
       "      <td>6036848.20</td>\n",
       "      <td>6290643.80</td>\n",
       "      <td>5718869.74</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-10</th>\n",
       "      <td>2.50</td>\n",
       "      <td>2.50</td>\n",
       "      <td>2.49</td>\n",
       "      <td>2.47</td>\n",
       "      <td>4163678.25</td>\n",
       "      <td>-0.01</td>\n",
       "      <td>-0.40</td>\n",
       "      <td>2.438</td>\n",
       "      <td>2.439</td>\n",
       "      <td>2.530</td>\n",
       "      <td>5369924.35</td>\n",
       "      <td>6017317.08</td>\n",
       "      <td>5738634.91</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-11</th>\n",
       "      <td>2.45</td>\n",
       "      <td>2.47</td>\n",
       "      <td>2.45</td>\n",
       "      <td>2.43</td>\n",
       "      <td>5042944.50</td>\n",
       "      <td>-0.04</td>\n",
       "      <td>-1.61</td>\n",
       "      <td>2.450</td>\n",
       "      <td>2.438</td>\n",
       "      <td>2.518</td>\n",
       "      <td>5522563.55</td>\n",
       "      <td>5768949.68</td>\n",
       "      <td>5742328.74</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-12</th>\n",
       "      <td>2.45</td>\n",
       "      <td>2.52</td>\n",
       "      <td>2.51</td>\n",
       "      <td>2.45</td>\n",
       "      <td>5398262.50</td>\n",
       "      <td>0.06</td>\n",
       "      <td>2.45</td>\n",
       "      <td>2.474</td>\n",
       "      <td>2.445</td>\n",
       "      <td>2.510</td>\n",
       "      <td>5640867.55</td>\n",
       "      <td>5840759.53</td>\n",
       "      <td>5853148.24</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-13</th>\n",
       "      <td>2.51</td>\n",
       "      <td>2.52</td>\n",
       "      <td>2.51</td>\n",
       "      <td>2.50</td>\n",
       "      <td>3347764.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>2.492</td>\n",
       "      <td>2.447</td>\n",
       "      <td>2.501</td>\n",
       "      <td>4812102.05</td>\n",
       "      <td>5601972.48</td>\n",
       "      <td>5768739.49</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-16</th>\n",
       "      <td>2.51</td>\n",
       "      <td>2.52</td>\n",
       "      <td>2.49</td>\n",
       "      <td>2.48</td>\n",
       "      <td>3981412.00</td>\n",
       "      <td>-0.02</td>\n",
       "      <td>-0.80</td>\n",
       "      <td>2.490</td>\n",
       "      <td>2.456</td>\n",
       "      <td>2.492</td>\n",
       "      <td>4386812.25</td>\n",
       "      <td>5211830.23</td>\n",
       "      <td>5749341.04</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-17</th>\n",
       "      <td>2.49</td>\n",
       "      <td>2.49</td>\n",
       "      <td>2.48</td>\n",
       "      <td>2.46</td>\n",
       "      <td>4208749.50</td>\n",
       "      <td>-0.01</td>\n",
       "      <td>-0.40</td>\n",
       "      <td>2.488</td>\n",
       "      <td>2.463</td>\n",
       "      <td>2.485</td>\n",
       "      <td>4395826.50</td>\n",
       "      <td>4882875.43</td>\n",
       "      <td>5526224.21</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-18</th>\n",
       "      <td>2.48</td>\n",
       "      <td>2.51</td>\n",
       "      <td>2.46</td>\n",
       "      <td>2.46</td>\n",
       "      <td>5627098.50</td>\n",
       "      <td>-0.02</td>\n",
       "      <td>-0.81</td>\n",
       "      <td>2.490</td>\n",
       "      <td>2.470</td>\n",
       "      <td>2.478</td>\n",
       "      <td>4512657.30</td>\n",
       "      <td>5017610.43</td>\n",
       "      <td>5570873.49</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-19</th>\n",
       "      <td>2.47</td>\n",
       "      <td>2.50</td>\n",
       "      <td>2.48</td>\n",
       "      <td>2.46</td>\n",
       "      <td>3966762.75</td>\n",
       "      <td>0.02</td>\n",
       "      <td>0.81</td>\n",
       "      <td>2.484</td>\n",
       "      <td>2.479</td>\n",
       "      <td>2.472</td>\n",
       "      <td>4226357.35</td>\n",
       "      <td>4933612.45</td>\n",
       "      <td>5461965.55</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-20</th>\n",
       "      <td>2.47</td>\n",
       "      <td>2.55</td>\n",
       "      <td>2.54</td>\n",
       "      <td>2.45</td>\n",
       "      <td>9077772.00</td>\n",
       "      <td>0.07</td>\n",
       "      <td>2.83</td>\n",
       "      <td>2.490</td>\n",
       "      <td>2.491</td>\n",
       "      <td>2.469</td>\n",
       "      <td>5372358.95</td>\n",
       "      <td>5092230.50</td>\n",
       "      <td>5658600.63</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-23</th>\n",
       "      <td>2.53</td>\n",
       "      <td>2.58</td>\n",
       "      <td>2.57</td>\n",
       "      <td>2.53</td>\n",
       "      <td>7761374.00</td>\n",
       "      <td>0.03</td>\n",
       "      <td>1.18</td>\n",
       "      <td>2.506</td>\n",
       "      <td>2.498</td>\n",
       "      <td>2.470</td>\n",
       "      <td>6128351.35</td>\n",
       "      <td>5257581.80</td>\n",
       "      <td>5774112.80</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-24</th>\n",
       "      <td>2.58</td>\n",
       "      <td>2.63</td>\n",
       "      <td>2.61</td>\n",
       "      <td>2.58</td>\n",
       "      <td>6654714.00</td>\n",
       "      <td>0.04</td>\n",
       "      <td>1.56</td>\n",
       "      <td>2.532</td>\n",
       "      <td>2.510</td>\n",
       "      <td>2.475</td>\n",
       "      <td>6617544.25</td>\n",
       "      <td>5506685.38</td>\n",
       "      <td>5762001.23</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-25</th>\n",
       "      <td>2.62</td>\n",
       "      <td>2.62</td>\n",
       "      <td>2.61</td>\n",
       "      <td>2.60</td>\n",
       "      <td>3908850.50</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>2.562</td>\n",
       "      <td>2.526</td>\n",
       "      <td>2.482</td>\n",
       "      <td>6273894.65</td>\n",
       "      <td>5393275.98</td>\n",
       "      <td>5581112.83</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-26</th>\n",
       "      <td>2.61</td>\n",
       "      <td>2.63</td>\n",
       "      <td>2.58</td>\n",
       "      <td>2.57</td>\n",
       "      <td>3793583.75</td>\n",
       "      <td>-0.03</td>\n",
       "      <td>-1.15</td>\n",
       "      <td>2.582</td>\n",
       "      <td>2.533</td>\n",
       "      <td>2.489</td>\n",
       "      <td>6239258.85</td>\n",
       "      <td>5232808.10</td>\n",
       "      <td>5536783.81</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-27</th>\n",
       "      <td>2.58</td>\n",
       "      <td>2.59</td>\n",
       "      <td>2.58</td>\n",
       "      <td>2.56</td>\n",
       "      <td>4064616.25</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>2.590</td>\n",
       "      <td>2.540</td>\n",
       "      <td>2.494</td>\n",
       "      <td>5236627.70</td>\n",
       "      <td>5304493.33</td>\n",
       "      <td>5453232.90</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-30</th>\n",
       "      <td>2.57</td>\n",
       "      <td>2.61</td>\n",
       "      <td>2.59</td>\n",
       "      <td>2.57</td>\n",
       "      <td>5541799.00</td>\n",
       "      <td>0.01</td>\n",
       "      <td>0.39</td>\n",
       "      <td>2.594</td>\n",
       "      <td>2.550</td>\n",
       "      <td>2.503</td>\n",
       "      <td>4792712.70</td>\n",
       "      <td>5460532.03</td>\n",
       "      <td>5336181.13</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-31</th>\n",
       "      <td>2.58</td>\n",
       "      <td>2.61</td>\n",
       "      <td>2.60</td>\n",
       "      <td>2.57</td>\n",
       "      <td>4770616.00</td>\n",
       "      <td>0.01</td>\n",
       "      <td>0.39</td>\n",
       "      <td>2.592</td>\n",
       "      <td>2.562</td>\n",
       "      <td>2.513</td>\n",
       "      <td>4415893.10</td>\n",
       "      <td>5516718.68</td>\n",
       "      <td>5199797.05</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-08-01</th>\n",
       "      <td>2.61</td>\n",
       "      <td>2.62</td>\n",
       "      <td>2.53</td>\n",
       "      <td>2.53</td>\n",
       "      <td>6281027.00</td>\n",
       "      <td>-0.07</td>\n",
       "      <td>-2.69</td>\n",
       "      <td>2.576</td>\n",
       "      <td>2.569</td>\n",
       "      <td>2.520</td>\n",
       "      <td>4890328.40</td>\n",
       "      <td>5582111.53</td>\n",
       "      <td>5299860.98</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-08-02</th>\n",
       "      <td>2.53</td>\n",
       "      <td>2.54</td>\n",
       "      <td>2.48</td>\n",
       "      <td>2.46</td>\n",
       "      <td>7211972.50</td>\n",
       "      <td>-0.06</td>\n",
       "      <td>-2.36</td>\n",
       "      <td>2.556</td>\n",
       "      <td>2.569</td>\n",
       "      <td>2.524</td>\n",
       "      <td>5574006.15</td>\n",
       "      <td>5906632.50</td>\n",
       "      <td>5420122.48</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-08-03</th>\n",
       "      <td>2.48</td>\n",
       "      <td>2.50</td>\n",
       "      <td>2.46</td>\n",
       "      <td>2.46</td>\n",
       "      <td>4492235.00</td>\n",
       "      <td>-0.02</td>\n",
       "      <td>-0.81</td>\n",
       "      <td>2.532</td>\n",
       "      <td>2.561</td>\n",
       "      <td>2.526</td>\n",
       "      <td>5659529.90</td>\n",
       "      <td>5448078.80</td>\n",
       "      <td>5270154.65</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-08-06</th>\n",
       "      <td>2.46</td>\n",
       "      <td>2.49</td>\n",
       "      <td>2.46</td>\n",
       "      <td>2.44</td>\n",
       "      <td>6107524.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>2.506</td>\n",
       "      <td>2.550</td>\n",
       "      <td>2.524</td>\n",
       "      <td>5772674.90</td>\n",
       "      <td>5282693.80</td>\n",
       "      <td>5270137.80</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>145 rows × 13 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "            open  high  close   low       volume  price_change  p_change  \\\n",
       "date                                                                       \n",
       "2018-01-02  2.86  2.91   2.91  2.86   4776970.00          0.05      1.75   \n",
       "2018-01-03  2.91  2.95   2.91  2.91   5708743.00          0.00      0.00   \n",
       "2018-01-04  2.91  2.93   2.92  2.91   3084130.75          0.01      0.34   \n",
       "2018-01-05  2.92  2.94   2.93  2.92   3220088.25          0.01      0.34   \n",
       "2018-01-08  2.93  2.95   2.94  2.93   3125531.00          0.01      0.34   \n",
       "2018-01-09  2.94  2.97   2.97  2.94   3097112.50          0.03      1.02   \n",
       "2018-01-10  2.97  3.00   3.00  2.96   4779057.00          0.03      1.01   \n",
       "2018-01-11  2.99  3.01   2.99  2.98   3227392.75          0.00      0.00   \n",
       "2018-01-12  2.99  3.02   3.02  2.99   3187761.75          0.03      1.00   \n",
       "2018-01-15  3.02  3.07   3.04  3.02   5852667.00          0.02      0.66   \n",
       "2018-01-16  3.04  3.07   3.06  3.03   4702502.00          0.02      0.66   \n",
       "2018-01-17  3.06  3.13   3.07  3.06   8383916.00          0.01      0.33   \n",
       "2018-01-18  3.09  3.12   3.11  3.08   6123523.50          0.04      1.30   \n",
       "2018-01-19  3.12  3.14   3.11  3.10   7679212.00          0.00      0.00   \n",
       "2018-01-22  3.10  3.14   3.13  3.09   6080783.00          0.02      0.64   \n",
       "2018-01-23  3.14  3.18   3.17  3.14   9355639.00          0.04      1.28   \n",
       "2018-01-24  3.18  3.20   3.17  3.15   8496426.00          0.00      0.00   \n",
       "2018-01-25  3.17  3.17   3.15  3.12   6424868.50         -0.02     -0.63   \n",
       "2018-01-26  3.15  3.20   3.17  3.14   5974380.50          0.02      0.64   \n",
       "2018-01-29  3.18  3.19   3.12  3.10   7415258.50         -0.05     -1.58   \n",
       "2018-01-30  3.11  3.12   3.07  3.07   4501058.00         -0.04     -1.29   \n",
       "2018-01-31  3.06  3.12   3.11  3.06   5737693.00          0.03      0.97   \n",
       "2018-02-01  3.12  3.14   3.13  3.10   7010665.50          0.02      0.64   \n",
       "2018-02-02  3.11  3.15   3.15  3.08   7292157.00          0.02      0.64   \n",
       "2018-02-05  3.11  3.18   3.18  3.10   8264981.00          0.03      0.95   \n",
       "2018-02-06  3.13  3.15   3.11  3.09  17298860.00         -0.07     -2.20   \n",
       "2018-02-07  3.14  3.16   3.02  3.01  13889274.00         -0.09     -2.89   \n",
       "2018-02-08  3.00  3.02   2.94  2.91  12060135.00         -0.08     -2.65   \n",
       "2018-02-09  2.85  2.88   2.80  2.71  18486014.00         -0.14     -4.76   \n",
       "2018-02-12  2.80  2.82   2.80  2.77   7828896.50          0.00      0.00   \n",
       "...          ...   ...    ...   ...          ...           ...       ...   \n",
       "2018-06-26  2.54  2.54   2.52  2.48   6896945.50         -0.03     -1.18   \n",
       "2018-06-27  2.52  2.53   2.46  2.45   7526618.50         -0.06     -2.38   \n",
       "2018-06-28  2.45  2.48   2.44  2.43   4680164.00         -0.03     -1.22   \n",
       "2018-06-29  2.45  2.50   2.49  2.45   5735634.50          0.05      2.05   \n",
       "2018-07-02  2.49  2.49   2.40  2.39   7882834.50         -0.10     -4.00   \n",
       "2018-07-03  2.41  2.42   2.41  2.35   7498297.50          0.01      0.42   \n",
       "2018-07-04  2.40  2.42   2.39  2.38   4279748.50         -0.02     -0.83   \n",
       "2018-07-05  2.39  2.42   2.39  2.37   4806742.50          0.00      0.00   \n",
       "2018-07-06  2.40  2.45   2.42  2.37   7491591.50          0.03      1.25   \n",
       "2018-07-09  2.44  2.50   2.50  2.44   6107861.00          0.07      2.88   \n",
       "2018-07-10  2.50  2.50   2.49  2.47   4163678.25         -0.01     -0.40   \n",
       "2018-07-11  2.45  2.47   2.45  2.43   5042944.50         -0.04     -1.61   \n",
       "2018-07-12  2.45  2.52   2.51  2.45   5398262.50          0.06      2.45   \n",
       "2018-07-13  2.51  2.52   2.51  2.50   3347764.00          0.00      0.00   \n",
       "2018-07-16  2.51  2.52   2.49  2.48   3981412.00         -0.02     -0.80   \n",
       "2018-07-17  2.49  2.49   2.48  2.46   4208749.50         -0.01     -0.40   \n",
       "2018-07-18  2.48  2.51   2.46  2.46   5627098.50         -0.02     -0.81   \n",
       "2018-07-19  2.47  2.50   2.48  2.46   3966762.75          0.02      0.81   \n",
       "2018-07-20  2.47  2.55   2.54  2.45   9077772.00          0.07      2.83   \n",
       "2018-07-23  2.53  2.58   2.57  2.53   7761374.00          0.03      1.18   \n",
       "2018-07-24  2.58  2.63   2.61  2.58   6654714.00          0.04      1.56   \n",
       "2018-07-25  2.62  2.62   2.61  2.60   3908850.50          0.00      0.00   \n",
       "2018-07-26  2.61  2.63   2.58  2.57   3793583.75         -0.03     -1.15   \n",
       "2018-07-27  2.58  2.59   2.58  2.56   4064616.25          0.00      0.00   \n",
       "2018-07-30  2.57  2.61   2.59  2.57   5541799.00          0.01      0.39   \n",
       "2018-07-31  2.58  2.61   2.60  2.57   4770616.00          0.01      0.39   \n",
       "2018-08-01  2.61  2.62   2.53  2.53   6281027.00         -0.07     -2.69   \n",
       "2018-08-02  2.53  2.54   2.48  2.46   7211972.50         -0.06     -2.36   \n",
       "2018-08-03  2.48  2.50   2.46  2.46   4492235.00         -0.02     -0.81   \n",
       "2018-08-06  2.46  2.49   2.46  2.44   6107524.00          0.00      0.00   \n",
       "\n",
       "              ma5   ma10   ma20        v_ma5       v_ma10      v_ma20  \n",
       "date                                                                   \n",
       "2018-01-02  2.870  2.875  2.868   5108968.20   4969266.33  5051746.58  \n",
       "2018-01-03  2.874  2.879  2.868   5265180.70   5021250.08  4890998.78  \n",
       "2018-01-04  2.892  2.883  2.871   4165531.45   4922446.00  4812177.54  \n",
       "2018-01-05  2.906  2.887  2.875   3906197.70   4670167.18  4674675.88  \n",
       "2018-01-08  2.922  2.893  2.879   3983092.60   4572603.20  4586422.63  \n",
       "2018-01-09  2.934  2.902  2.882   3647121.10   4378044.65  4547755.30  \n",
       "2018-01-10  2.952  2.913  2.890   3461183.90   4363182.30  4589627.24  \n",
       "2018-01-11  2.966  2.929  2.896   3489836.30   3827683.88  4479297.18  \n",
       "2018-01-12  2.984  2.945  2.904   3483371.00   3694784.35  4410339.59  \n",
       "2018-01-15  3.004  2.963  2.915   4028798.20   4005945.40  4476825.91  \n",
       "2018-01-16  3.022  2.978  2.927   4349876.10   3998498.60  4483882.46  \n",
       "2018-01-17  3.036  2.994  2.937   5070847.90   4266015.90  4643632.99  \n",
       "2018-01-18  3.060  3.013  2.948   5650074.05   4569955.18  4746200.59  \n",
       "2018-01-19  3.078  3.031  2.959   6548364.10   5015867.55  4843017.36  \n",
       "2018-01-22  3.096  3.050  2.972   6593987.30   5311392.75  4941997.98  \n",
       "2018-01-23  3.118  3.070  2.986   7524614.70   5937245.40  5157645.03  \n",
       "2018-01-24  3.138  3.087  3.000   7547116.70   6308982.30  5336082.30  \n",
       "2018-01-25  3.146  3.103  3.016   7607385.70   6628729.88  5228206.88  \n",
       "2018-01-26  3.158  3.118  3.032   7266419.40   6907391.75  5301088.05  \n",
       "2018-01-29  3.156  3.126  3.045   7533314.50   7063650.90  5534798.15  \n",
       "2018-01-30  3.136  3.127  3.053   6562398.30   7043506.50  5521002.55  \n",
       "2018-01-31  3.124  3.131  3.063   6010651.70   6778884.20  5522450.05  \n",
       "2018-02-01  3.120  3.133  3.073   6127811.10   6867598.40  5718776.79  \n",
       "2018-02-02  3.116  3.137  3.084   6391366.40   6828892.90  5922380.23  \n",
       "2018-02-05  3.128  3.142  3.096   6561310.90   7047312.70  6179352.73  \n",
       "2018-02-06  3.136  3.136  3.103   9120871.30   7841634.80  6889440.10  \n",
       "2018-02-07  3.118  3.121  3.104  10751187.50   8380919.60  7344950.95  \n",
       "2018-02-08  3.080  3.100  3.102  11761081.40   8944446.25  7786588.06  \n",
       "2018-02-09  3.010  3.063  3.091  13999852.80  10195609.60  8551500.68  \n",
       "2018-02-12  2.934  3.031  3.079  13912635.90  10236973.40  8650312.15  \n",
       "...           ...    ...    ...          ...          ...         ...  \n",
       "2018-06-26  2.574  2.620  2.641   5674436.20   5459952.75  4934872.10  \n",
       "2018-06-27  2.544  2.597  2.632   6232937.30   5715707.80  5047198.95  \n",
       "2018-06-28  2.514  2.574  2.624   5939985.80   5865536.95  4976609.78  \n",
       "2018-06-29  2.492  2.555  2.616   6058098.60   5935506.50  5006421.05  \n",
       "2018-07-02  2.462  2.527  2.604   6544439.40   6286851.85  5228804.86  \n",
       "2018-07-03  2.440  2.507  2.590   6664709.80   6169573.00  5357611.66  \n",
       "2018-07-04  2.426  2.485  2.574   6015335.80   6124136.55  5385696.56  \n",
       "2018-07-05  2.416  2.465  2.559   6040651.50   5990318.65  5488546.59  \n",
       "2018-07-06  2.402  2.447  2.546   6391842.90   6224970.75  5637077.41  \n",
       "2018-07-09  2.422  2.442  2.538   6036848.20   6290643.80  5718869.74  \n",
       "2018-07-10  2.438  2.439  2.530   5369924.35   6017317.08  5738634.91  \n",
       "2018-07-11  2.450  2.438  2.518   5522563.55   5768949.68  5742328.74  \n",
       "2018-07-12  2.474  2.445  2.510   5640867.55   5840759.53  5853148.24  \n",
       "2018-07-13  2.492  2.447  2.501   4812102.05   5601972.48  5768739.49  \n",
       "2018-07-16  2.490  2.456  2.492   4386812.25   5211830.23  5749341.04  \n",
       "2018-07-17  2.488  2.463  2.485   4395826.50   4882875.43  5526224.21  \n",
       "2018-07-18  2.490  2.470  2.478   4512657.30   5017610.43  5570873.49  \n",
       "2018-07-19  2.484  2.479  2.472   4226357.35   4933612.45  5461965.55  \n",
       "2018-07-20  2.490  2.491  2.469   5372358.95   5092230.50  5658600.63  \n",
       "2018-07-23  2.506  2.498  2.470   6128351.35   5257581.80  5774112.80  \n",
       "2018-07-24  2.532  2.510  2.475   6617544.25   5506685.38  5762001.23  \n",
       "2018-07-25  2.562  2.526  2.482   6273894.65   5393275.98  5581112.83  \n",
       "2018-07-26  2.582  2.533  2.489   6239258.85   5232808.10  5536783.81  \n",
       "2018-07-27  2.590  2.540  2.494   5236627.70   5304493.33  5453232.90  \n",
       "2018-07-30  2.594  2.550  2.503   4792712.70   5460532.03  5336181.13  \n",
       "2018-07-31  2.592  2.562  2.513   4415893.10   5516718.68  5199797.05  \n",
       "2018-08-01  2.576  2.569  2.520   4890328.40   5582111.53  5299860.98  \n",
       "2018-08-02  2.556  2.569  2.524   5574006.15   5906632.50  5420122.48  \n",
       "2018-08-03  2.532  2.561  2.526   5659529.90   5448078.80  5270154.65  \n",
       "2018-08-06  2.506  2.550  2.524   5772674.90   5282693.80  5270137.80  \n",
       "\n",
       "[145 rows x 13 columns]"
      ]
     },
     "execution_count": 14,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "data = ts.get_hist_data('510050','2018-01-01')\n",
    "data = data.sort_index()\n",
    "data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style>\n",
       "    .dataframe thead tr:only-child th {\n",
       "        text-align: right;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: left;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>close</th>\n",
       "      <th>change</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>date</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>2018-01-02</th>\n",
       "      <td>2.91</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-03</th>\n",
       "      <td>2.91</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-04</th>\n",
       "      <td>2.92</td>\n",
       "      <td>0.01</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-05</th>\n",
       "      <td>2.93</td>\n",
       "      <td>0.01</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-08</th>\n",
       "      <td>2.94</td>\n",
       "      <td>0.01</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-09</th>\n",
       "      <td>2.97</td>\n",
       "      <td>0.03</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-10</th>\n",
       "      <td>3.00</td>\n",
       "      <td>0.03</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-11</th>\n",
       "      <td>2.99</td>\n",
       "      <td>-0.01</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-12</th>\n",
       "      <td>3.02</td>\n",
       "      <td>0.03</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-15</th>\n",
       "      <td>3.04</td>\n",
       "      <td>0.02</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-16</th>\n",
       "      <td>3.06</td>\n",
       "      <td>0.02</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-17</th>\n",
       "      <td>3.07</td>\n",
       "      <td>0.01</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-18</th>\n",
       "      <td>3.11</td>\n",
       "      <td>0.04</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-19</th>\n",
       "      <td>3.11</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-22</th>\n",
       "      <td>3.13</td>\n",
       "      <td>0.02</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-23</th>\n",
       "      <td>3.17</td>\n",
       "      <td>0.04</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-24</th>\n",
       "      <td>3.17</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-25</th>\n",
       "      <td>3.15</td>\n",
       "      <td>-0.02</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-26</th>\n",
       "      <td>3.17</td>\n",
       "      <td>0.02</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-29</th>\n",
       "      <td>3.12</td>\n",
       "      <td>-0.05</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-30</th>\n",
       "      <td>3.07</td>\n",
       "      <td>-0.05</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-31</th>\n",
       "      <td>3.11</td>\n",
       "      <td>0.04</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-01</th>\n",
       "      <td>3.13</td>\n",
       "      <td>0.02</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-02</th>\n",
       "      <td>3.15</td>\n",
       "      <td>0.02</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-05</th>\n",
       "      <td>3.18</td>\n",
       "      <td>0.03</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-06</th>\n",
       "      <td>3.11</td>\n",
       "      <td>-0.07</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-07</th>\n",
       "      <td>3.02</td>\n",
       "      <td>-0.09</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-08</th>\n",
       "      <td>2.94</td>\n",
       "      <td>-0.08</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-09</th>\n",
       "      <td>2.80</td>\n",
       "      <td>-0.14</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-12</th>\n",
       "      <td>2.80</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-06-26</th>\n",
       "      <td>2.52</td>\n",
       "      <td>-0.03</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-06-27</th>\n",
       "      <td>2.46</td>\n",
       "      <td>-0.06</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-06-28</th>\n",
       "      <td>2.44</td>\n",
       "      <td>-0.02</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-06-29</th>\n",
       "      <td>2.49</td>\n",
       "      <td>0.05</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-02</th>\n",
       "      <td>2.40</td>\n",
       "      <td>-0.09</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-03</th>\n",
       "      <td>2.41</td>\n",
       "      <td>0.01</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-04</th>\n",
       "      <td>2.39</td>\n",
       "      <td>-0.02</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-05</th>\n",
       "      <td>2.39</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-06</th>\n",
       "      <td>2.42</td>\n",
       "      <td>0.03</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-09</th>\n",
       "      <td>2.50</td>\n",
       "      <td>0.08</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-10</th>\n",
       "      <td>2.49</td>\n",
       "      <td>-0.01</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-11</th>\n",
       "      <td>2.45</td>\n",
       "      <td>-0.04</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-12</th>\n",
       "      <td>2.51</td>\n",
       "      <td>0.06</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-13</th>\n",
       "      <td>2.51</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-16</th>\n",
       "      <td>2.49</td>\n",
       "      <td>-0.02</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-17</th>\n",
       "      <td>2.48</td>\n",
       "      <td>-0.01</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-18</th>\n",
       "      <td>2.46</td>\n",
       "      <td>-0.02</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-19</th>\n",
       "      <td>2.48</td>\n",
       "      <td>0.02</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-20</th>\n",
       "      <td>2.54</td>\n",
       "      <td>0.06</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-23</th>\n",
       "      <td>2.57</td>\n",
       "      <td>0.03</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-24</th>\n",
       "      <td>2.61</td>\n",
       "      <td>0.04</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-25</th>\n",
       "      <td>2.61</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-26</th>\n",
       "      <td>2.58</td>\n",
       "      <td>-0.03</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-27</th>\n",
       "      <td>2.58</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-30</th>\n",
       "      <td>2.59</td>\n",
       "      <td>0.01</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-31</th>\n",
       "      <td>2.60</td>\n",
       "      <td>0.01</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-08-01</th>\n",
       "      <td>2.53</td>\n",
       "      <td>-0.07</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-08-02</th>\n",
       "      <td>2.48</td>\n",
       "      <td>-0.05</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-08-03</th>\n",
       "      <td>2.46</td>\n",
       "      <td>-0.02</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-08-06</th>\n",
       "      <td>2.46</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>145 rows × 2 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "            close  change\n",
       "date                     \n",
       "2018-01-02   2.91     NaN\n",
       "2018-01-03   2.91    0.00\n",
       "2018-01-04   2.92    0.01\n",
       "2018-01-05   2.93    0.01\n",
       "2018-01-08   2.94    0.01\n",
       "2018-01-09   2.97    0.03\n",
       "2018-01-10   3.00    0.03\n",
       "2018-01-11   2.99   -0.01\n",
       "2018-01-12   3.02    0.03\n",
       "2018-01-15   3.04    0.02\n",
       "2018-01-16   3.06    0.02\n",
       "2018-01-17   3.07    0.01\n",
       "2018-01-18   3.11    0.04\n",
       "2018-01-19   3.11    0.00\n",
       "2018-01-22   3.13    0.02\n",
       "2018-01-23   3.17    0.04\n",
       "2018-01-24   3.17    0.00\n",
       "2018-01-25   3.15   -0.02\n",
       "2018-01-26   3.17    0.02\n",
       "2018-01-29   3.12   -0.05\n",
       "2018-01-30   3.07   -0.05\n",
       "2018-01-31   3.11    0.04\n",
       "2018-02-01   3.13    0.02\n",
       "2018-02-02   3.15    0.02\n",
       "2018-02-05   3.18    0.03\n",
       "2018-02-06   3.11   -0.07\n",
       "2018-02-07   3.02   -0.09\n",
       "2018-02-08   2.94   -0.08\n",
       "2018-02-09   2.80   -0.14\n",
       "2018-02-12   2.80    0.00\n",
       "...           ...     ...\n",
       "2018-06-26   2.52   -0.03\n",
       "2018-06-27   2.46   -0.06\n",
       "2018-06-28   2.44   -0.02\n",
       "2018-06-29   2.49    0.05\n",
       "2018-07-02   2.40   -0.09\n",
       "2018-07-03   2.41    0.01\n",
       "2018-07-04   2.39   -0.02\n",
       "2018-07-05   2.39    0.00\n",
       "2018-07-06   2.42    0.03\n",
       "2018-07-09   2.50    0.08\n",
       "2018-07-10   2.49   -0.01\n",
       "2018-07-11   2.45   -0.04\n",
       "2018-07-12   2.51    0.06\n",
       "2018-07-13   2.51    0.00\n",
       "2018-07-16   2.49   -0.02\n",
       "2018-07-17   2.48   -0.01\n",
       "2018-07-18   2.46   -0.02\n",
       "2018-07-19   2.48    0.02\n",
       "2018-07-20   2.54    0.06\n",
       "2018-07-23   2.57    0.03\n",
       "2018-07-24   2.61    0.04\n",
       "2018-07-25   2.61    0.00\n",
       "2018-07-26   2.58   -0.03\n",
       "2018-07-27   2.58    0.00\n",
       "2018-07-30   2.59    0.01\n",
       "2018-07-31   2.60    0.01\n",
       "2018-08-01   2.53   -0.07\n",
       "2018-08-02   2.48   -0.05\n",
       "2018-08-03   2.46   -0.02\n",
       "2018-08-06   2.46    0.00\n",
       "\n",
       "[145 rows x 2 columns]"
      ]
     },
     "execution_count": 15,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df = pd.DataFrame()\n",
    "df['close'] = data['close']\n",
    "df['change'] = data['close']- data['close'].shift(1)\n",
    "df"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style>\n",
       "    .dataframe thead tr:only-child th {\n",
       "        text-align: right;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: left;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>close</th>\n",
       "      <th>change</th>\n",
       "      <th>ma5</th>\n",
       "      <th>ma20</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>date</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>2018-01-02</th>\n",
       "      <td>2.91</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-03</th>\n",
       "      <td>2.91</td>\n",
       "      <td>0.00</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-04</th>\n",
       "      <td>2.92</td>\n",
       "      <td>0.01</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-05</th>\n",
       "      <td>2.93</td>\n",
       "      <td>0.01</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-08</th>\n",
       "      <td>2.94</td>\n",
       "      <td>0.01</td>\n",
       "      <td>2.922</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-09</th>\n",
       "      <td>2.97</td>\n",
       "      <td>0.03</td>\n",
       "      <td>2.934</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-10</th>\n",
       "      <td>3.00</td>\n",
       "      <td>0.03</td>\n",
       "      <td>2.952</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-11</th>\n",
       "      <td>2.99</td>\n",
       "      <td>-0.01</td>\n",
       "      <td>2.966</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-12</th>\n",
       "      <td>3.02</td>\n",
       "      <td>0.03</td>\n",
       "      <td>2.984</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-15</th>\n",
       "      <td>3.04</td>\n",
       "      <td>0.02</td>\n",
       "      <td>3.004</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-16</th>\n",
       "      <td>3.06</td>\n",
       "      <td>0.02</td>\n",
       "      <td>3.022</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-17</th>\n",
       "      <td>3.07</td>\n",
       "      <td>0.01</td>\n",
       "      <td>3.036</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-18</th>\n",
       "      <td>3.11</td>\n",
       "      <td>0.04</td>\n",
       "      <td>3.060</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-19</th>\n",
       "      <td>3.11</td>\n",
       "      <td>0.00</td>\n",
       "      <td>3.078</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-22</th>\n",
       "      <td>3.13</td>\n",
       "      <td>0.02</td>\n",
       "      <td>3.096</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-23</th>\n",
       "      <td>3.17</td>\n",
       "      <td>0.04</td>\n",
       "      <td>3.118</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-24</th>\n",
       "      <td>3.17</td>\n",
       "      <td>0.00</td>\n",
       "      <td>3.138</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-25</th>\n",
       "      <td>3.15</td>\n",
       "      <td>-0.02</td>\n",
       "      <td>3.146</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-26</th>\n",
       "      <td>3.17</td>\n",
       "      <td>0.02</td>\n",
       "      <td>3.158</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-29</th>\n",
       "      <td>3.12</td>\n",
       "      <td>-0.05</td>\n",
       "      <td>3.156</td>\n",
       "      <td>3.0445</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-30</th>\n",
       "      <td>3.07</td>\n",
       "      <td>-0.05</td>\n",
       "      <td>3.136</td>\n",
       "      <td>3.0525</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-31</th>\n",
       "      <td>3.11</td>\n",
       "      <td>0.04</td>\n",
       "      <td>3.124</td>\n",
       "      <td>3.0625</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-01</th>\n",
       "      <td>3.13</td>\n",
       "      <td>0.02</td>\n",
       "      <td>3.120</td>\n",
       "      <td>3.0730</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-02</th>\n",
       "      <td>3.15</td>\n",
       "      <td>0.02</td>\n",
       "      <td>3.116</td>\n",
       "      <td>3.0840</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-05</th>\n",
       "      <td>3.18</td>\n",
       "      <td>0.03</td>\n",
       "      <td>3.128</td>\n",
       "      <td>3.0960</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-06</th>\n",
       "      <td>3.11</td>\n",
       "      <td>-0.07</td>\n",
       "      <td>3.136</td>\n",
       "      <td>3.1030</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-07</th>\n",
       "      <td>3.02</td>\n",
       "      <td>-0.09</td>\n",
       "      <td>3.118</td>\n",
       "      <td>3.1040</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-08</th>\n",
       "      <td>2.94</td>\n",
       "      <td>-0.08</td>\n",
       "      <td>3.080</td>\n",
       "      <td>3.1015</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-09</th>\n",
       "      <td>2.80</td>\n",
       "      <td>-0.14</td>\n",
       "      <td>3.010</td>\n",
       "      <td>3.0905</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-12</th>\n",
       "      <td>2.80</td>\n",
       "      <td>0.00</td>\n",
       "      <td>2.934</td>\n",
       "      <td>3.0785</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-06-26</th>\n",
       "      <td>2.52</td>\n",
       "      <td>-0.03</td>\n",
       "      <td>2.574</td>\n",
       "      <td>2.6410</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-06-27</th>\n",
       "      <td>2.46</td>\n",
       "      <td>-0.06</td>\n",
       "      <td>2.544</td>\n",
       "      <td>2.6315</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-06-28</th>\n",
       "      <td>2.44</td>\n",
       "      <td>-0.02</td>\n",
       "      <td>2.514</td>\n",
       "      <td>2.6235</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-06-29</th>\n",
       "      <td>2.49</td>\n",
       "      <td>0.05</td>\n",
       "      <td>2.492</td>\n",
       "      <td>2.6155</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-02</th>\n",
       "      <td>2.40</td>\n",
       "      <td>-0.09</td>\n",
       "      <td>2.462</td>\n",
       "      <td>2.6035</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-03</th>\n",
       "      <td>2.41</td>\n",
       "      <td>0.01</td>\n",
       "      <td>2.440</td>\n",
       "      <td>2.5895</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-04</th>\n",
       "      <td>2.39</td>\n",
       "      <td>-0.02</td>\n",
       "      <td>2.426</td>\n",
       "      <td>2.5740</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-05</th>\n",
       "      <td>2.39</td>\n",
       "      <td>0.00</td>\n",
       "      <td>2.416</td>\n",
       "      <td>2.5590</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-06</th>\n",
       "      <td>2.42</td>\n",
       "      <td>0.03</td>\n",
       "      <td>2.402</td>\n",
       "      <td>2.5455</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-09</th>\n",
       "      <td>2.50</td>\n",
       "      <td>0.08</td>\n",
       "      <td>2.422</td>\n",
       "      <td>2.5380</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-10</th>\n",
       "      <td>2.49</td>\n",
       "      <td>-0.01</td>\n",
       "      <td>2.438</td>\n",
       "      <td>2.5295</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-11</th>\n",
       "      <td>2.45</td>\n",
       "      <td>-0.04</td>\n",
       "      <td>2.450</td>\n",
       "      <td>2.5175</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-12</th>\n",
       "      <td>2.51</td>\n",
       "      <td>0.06</td>\n",
       "      <td>2.474</td>\n",
       "      <td>2.5095</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-13</th>\n",
       "      <td>2.51</td>\n",
       "      <td>0.00</td>\n",
       "      <td>2.492</td>\n",
       "      <td>2.5010</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-16</th>\n",
       "      <td>2.49</td>\n",
       "      <td>-0.02</td>\n",
       "      <td>2.490</td>\n",
       "      <td>2.4915</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-17</th>\n",
       "      <td>2.48</td>\n",
       "      <td>-0.01</td>\n",
       "      <td>2.488</td>\n",
       "      <td>2.4850</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-18</th>\n",
       "      <td>2.46</td>\n",
       "      <td>-0.02</td>\n",
       "      <td>2.490</td>\n",
       "      <td>2.4775</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-19</th>\n",
       "      <td>2.48</td>\n",
       "      <td>0.02</td>\n",
       "      <td>2.484</td>\n",
       "      <td>2.4720</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-20</th>\n",
       "      <td>2.54</td>\n",
       "      <td>0.06</td>\n",
       "      <td>2.490</td>\n",
       "      <td>2.4690</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-23</th>\n",
       "      <td>2.57</td>\n",
       "      <td>0.03</td>\n",
       "      <td>2.506</td>\n",
       "      <td>2.4700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-24</th>\n",
       "      <td>2.61</td>\n",
       "      <td>0.04</td>\n",
       "      <td>2.532</td>\n",
       "      <td>2.4745</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-25</th>\n",
       "      <td>2.61</td>\n",
       "      <td>0.00</td>\n",
       "      <td>2.562</td>\n",
       "      <td>2.4820</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-26</th>\n",
       "      <td>2.58</td>\n",
       "      <td>-0.03</td>\n",
       "      <td>2.582</td>\n",
       "      <td>2.4890</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-27</th>\n",
       "      <td>2.58</td>\n",
       "      <td>0.00</td>\n",
       "      <td>2.590</td>\n",
       "      <td>2.4935</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-30</th>\n",
       "      <td>2.59</td>\n",
       "      <td>0.01</td>\n",
       "      <td>2.594</td>\n",
       "      <td>2.5030</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-31</th>\n",
       "      <td>2.60</td>\n",
       "      <td>0.01</td>\n",
       "      <td>2.592</td>\n",
       "      <td>2.5125</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-08-01</th>\n",
       "      <td>2.53</td>\n",
       "      <td>-0.07</td>\n",
       "      <td>2.576</td>\n",
       "      <td>2.5195</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-08-02</th>\n",
       "      <td>2.48</td>\n",
       "      <td>-0.05</td>\n",
       "      <td>2.556</td>\n",
       "      <td>2.5240</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-08-03</th>\n",
       "      <td>2.46</td>\n",
       "      <td>-0.02</td>\n",
       "      <td>2.532</td>\n",
       "      <td>2.5260</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-08-06</th>\n",
       "      <td>2.46</td>\n",
       "      <td>0.00</td>\n",
       "      <td>2.506</td>\n",
       "      <td>2.5240</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>145 rows × 4 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "            close  change    ma5    ma20\n",
       "date                                    \n",
       "2018-01-02   2.91     NaN    NaN     NaN\n",
       "2018-01-03   2.91    0.00    NaN     NaN\n",
       "2018-01-04   2.92    0.01    NaN     NaN\n",
       "2018-01-05   2.93    0.01    NaN     NaN\n",
       "2018-01-08   2.94    0.01  2.922     NaN\n",
       "2018-01-09   2.97    0.03  2.934     NaN\n",
       "2018-01-10   3.00    0.03  2.952     NaN\n",
       "2018-01-11   2.99   -0.01  2.966     NaN\n",
       "2018-01-12   3.02    0.03  2.984     NaN\n",
       "2018-01-15   3.04    0.02  3.004     NaN\n",
       "2018-01-16   3.06    0.02  3.022     NaN\n",
       "2018-01-17   3.07    0.01  3.036     NaN\n",
       "2018-01-18   3.11    0.04  3.060     NaN\n",
       "2018-01-19   3.11    0.00  3.078     NaN\n",
       "2018-01-22   3.13    0.02  3.096     NaN\n",
       "2018-01-23   3.17    0.04  3.118     NaN\n",
       "2018-01-24   3.17    0.00  3.138     NaN\n",
       "2018-01-25   3.15   -0.02  3.146     NaN\n",
       "2018-01-26   3.17    0.02  3.158     NaN\n",
       "2018-01-29   3.12   -0.05  3.156  3.0445\n",
       "2018-01-30   3.07   -0.05  3.136  3.0525\n",
       "2018-01-31   3.11    0.04  3.124  3.0625\n",
       "2018-02-01   3.13    0.02  3.120  3.0730\n",
       "2018-02-02   3.15    0.02  3.116  3.0840\n",
       "2018-02-05   3.18    0.03  3.128  3.0960\n",
       "2018-02-06   3.11   -0.07  3.136  3.1030\n",
       "2018-02-07   3.02   -0.09  3.118  3.1040\n",
       "2018-02-08   2.94   -0.08  3.080  3.1015\n",
       "2018-02-09   2.80   -0.14  3.010  3.0905\n",
       "2018-02-12   2.80    0.00  2.934  3.0785\n",
       "...           ...     ...    ...     ...\n",
       "2018-06-26   2.52   -0.03  2.574  2.6410\n",
       "2018-06-27   2.46   -0.06  2.544  2.6315\n",
       "2018-06-28   2.44   -0.02  2.514  2.6235\n",
       "2018-06-29   2.49    0.05  2.492  2.6155\n",
       "2018-07-02   2.40   -0.09  2.462  2.6035\n",
       "2018-07-03   2.41    0.01  2.440  2.5895\n",
       "2018-07-04   2.39   -0.02  2.426  2.5740\n",
       "2018-07-05   2.39    0.00  2.416  2.5590\n",
       "2018-07-06   2.42    0.03  2.402  2.5455\n",
       "2018-07-09   2.50    0.08  2.422  2.5380\n",
       "2018-07-10   2.49   -0.01  2.438  2.5295\n",
       "2018-07-11   2.45   -0.04  2.450  2.5175\n",
       "2018-07-12   2.51    0.06  2.474  2.5095\n",
       "2018-07-13   2.51    0.00  2.492  2.5010\n",
       "2018-07-16   2.49   -0.02  2.490  2.4915\n",
       "2018-07-17   2.48   -0.01  2.488  2.4850\n",
       "2018-07-18   2.46   -0.02  2.490  2.4775\n",
       "2018-07-19   2.48    0.02  2.484  2.4720\n",
       "2018-07-20   2.54    0.06  2.490  2.4690\n",
       "2018-07-23   2.57    0.03  2.506  2.4700\n",
       "2018-07-24   2.61    0.04  2.532  2.4745\n",
       "2018-07-25   2.61    0.00  2.562  2.4820\n",
       "2018-07-26   2.58   -0.03  2.582  2.4890\n",
       "2018-07-27   2.58    0.00  2.590  2.4935\n",
       "2018-07-30   2.59    0.01  2.594  2.5030\n",
       "2018-07-31   2.60    0.01  2.592  2.5125\n",
       "2018-08-01   2.53   -0.07  2.576  2.5195\n",
       "2018-08-02   2.48   -0.05  2.556  2.5240\n",
       "2018-08-03   2.46   -0.02  2.532  2.5260\n",
       "2018-08-06   2.46    0.00  2.506  2.5240\n",
       "\n",
       "[145 rows x 4 columns]"
      ]
     },
     "execution_count": 16,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df['ma5'] = df['close'].rolling(window = 5,center = False).mean()\n",
    "df['ma20'] = df['close'].rolling(window = 20,center = False).mean()\n",
    "df"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style>\n",
       "    .dataframe thead tr:only-child th {\n",
       "        text-align: right;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: left;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>close</th>\n",
       "      <th>change</th>\n",
       "      <th>ma5</th>\n",
       "      <th>ma20</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>date</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>2018-01-29</th>\n",
       "      <td>3.12</td>\n",
       "      <td>-0.05</td>\n",
       "      <td>3.156</td>\n",
       "      <td>3.0445</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-30</th>\n",
       "      <td>3.07</td>\n",
       "      <td>-0.05</td>\n",
       "      <td>3.136</td>\n",
       "      <td>3.0525</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-31</th>\n",
       "      <td>3.11</td>\n",
       "      <td>0.04</td>\n",
       "      <td>3.124</td>\n",
       "      <td>3.0625</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-01</th>\n",
       "      <td>3.13</td>\n",
       "      <td>0.02</td>\n",
       "      <td>3.120</td>\n",
       "      <td>3.0730</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-02</th>\n",
       "      <td>3.15</td>\n",
       "      <td>0.02</td>\n",
       "      <td>3.116</td>\n",
       "      <td>3.0840</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-05</th>\n",
       "      <td>3.18</td>\n",
       "      <td>0.03</td>\n",
       "      <td>3.128</td>\n",
       "      <td>3.0960</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-06</th>\n",
       "      <td>3.11</td>\n",
       "      <td>-0.07</td>\n",
       "      <td>3.136</td>\n",
       "      <td>3.1030</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-07</th>\n",
       "      <td>3.02</td>\n",
       "      <td>-0.09</td>\n",
       "      <td>3.118</td>\n",
       "      <td>3.1040</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-08</th>\n",
       "      <td>2.94</td>\n",
       "      <td>-0.08</td>\n",
       "      <td>3.080</td>\n",
       "      <td>3.1015</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-09</th>\n",
       "      <td>2.80</td>\n",
       "      <td>-0.14</td>\n",
       "      <td>3.010</td>\n",
       "      <td>3.0905</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-12</th>\n",
       "      <td>2.80</td>\n",
       "      <td>0.00</td>\n",
       "      <td>2.934</td>\n",
       "      <td>3.0785</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-13</th>\n",
       "      <td>2.85</td>\n",
       "      <td>0.05</td>\n",
       "      <td>2.882</td>\n",
       "      <td>3.0680</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-14</th>\n",
       "      <td>2.87</td>\n",
       "      <td>0.02</td>\n",
       "      <td>2.852</td>\n",
       "      <td>3.0580</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-22</th>\n",
       "      <td>2.93</td>\n",
       "      <td>0.06</td>\n",
       "      <td>2.850</td>\n",
       "      <td>3.0490</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-23</th>\n",
       "      <td>2.96</td>\n",
       "      <td>0.03</td>\n",
       "      <td>2.882</td>\n",
       "      <td>3.0415</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-26</th>\n",
       "      <td>2.97</td>\n",
       "      <td>0.01</td>\n",
       "      <td>2.916</td>\n",
       "      <td>3.0335</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-27</th>\n",
       "      <td>2.92</td>\n",
       "      <td>-0.05</td>\n",
       "      <td>2.930</td>\n",
       "      <td>3.0210</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-28</th>\n",
       "      <td>2.87</td>\n",
       "      <td>-0.05</td>\n",
       "      <td>2.930</td>\n",
       "      <td>3.0060</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-01</th>\n",
       "      <td>2.88</td>\n",
       "      <td>0.01</td>\n",
       "      <td>2.920</td>\n",
       "      <td>2.9925</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-02</th>\n",
       "      <td>2.86</td>\n",
       "      <td>-0.02</td>\n",
       "      <td>2.900</td>\n",
       "      <td>2.9770</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-05</th>\n",
       "      <td>2.85</td>\n",
       "      <td>-0.01</td>\n",
       "      <td>2.876</td>\n",
       "      <td>2.9635</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-06</th>\n",
       "      <td>2.89</td>\n",
       "      <td>0.04</td>\n",
       "      <td>2.870</td>\n",
       "      <td>2.9545</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-07</th>\n",
       "      <td>2.87</td>\n",
       "      <td>-0.02</td>\n",
       "      <td>2.870</td>\n",
       "      <td>2.9425</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-08</th>\n",
       "      <td>2.89</td>\n",
       "      <td>0.02</td>\n",
       "      <td>2.872</td>\n",
       "      <td>2.9305</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-09</th>\n",
       "      <td>2.90</td>\n",
       "      <td>0.01</td>\n",
       "      <td>2.880</td>\n",
       "      <td>2.9180</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-12</th>\n",
       "      <td>2.91</td>\n",
       "      <td>0.01</td>\n",
       "      <td>2.892</td>\n",
       "      <td>2.9045</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-13</th>\n",
       "      <td>2.87</td>\n",
       "      <td>-0.04</td>\n",
       "      <td>2.888</td>\n",
       "      <td>2.8925</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-14</th>\n",
       "      <td>2.86</td>\n",
       "      <td>-0.01</td>\n",
       "      <td>2.886</td>\n",
       "      <td>2.8845</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-15</th>\n",
       "      <td>2.89</td>\n",
       "      <td>0.03</td>\n",
       "      <td>2.886</td>\n",
       "      <td>2.8820</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-16</th>\n",
       "      <td>2.86</td>\n",
       "      <td>-0.03</td>\n",
       "      <td>2.878</td>\n",
       "      <td>2.8850</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-06-26</th>\n",
       "      <td>2.52</td>\n",
       "      <td>-0.03</td>\n",
       "      <td>2.574</td>\n",
       "      <td>2.6410</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-06-27</th>\n",
       "      <td>2.46</td>\n",
       "      <td>-0.06</td>\n",
       "      <td>2.544</td>\n",
       "      <td>2.6315</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-06-28</th>\n",
       "      <td>2.44</td>\n",
       "      <td>-0.02</td>\n",
       "      <td>2.514</td>\n",
       "      <td>2.6235</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-06-29</th>\n",
       "      <td>2.49</td>\n",
       "      <td>0.05</td>\n",
       "      <td>2.492</td>\n",
       "      <td>2.6155</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-02</th>\n",
       "      <td>2.40</td>\n",
       "      <td>-0.09</td>\n",
       "      <td>2.462</td>\n",
       "      <td>2.6035</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-03</th>\n",
       "      <td>2.41</td>\n",
       "      <td>0.01</td>\n",
       "      <td>2.440</td>\n",
       "      <td>2.5895</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-04</th>\n",
       "      <td>2.39</td>\n",
       "      <td>-0.02</td>\n",
       "      <td>2.426</td>\n",
       "      <td>2.5740</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-05</th>\n",
       "      <td>2.39</td>\n",
       "      <td>0.00</td>\n",
       "      <td>2.416</td>\n",
       "      <td>2.5590</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-06</th>\n",
       "      <td>2.42</td>\n",
       "      <td>0.03</td>\n",
       "      <td>2.402</td>\n",
       "      <td>2.5455</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-09</th>\n",
       "      <td>2.50</td>\n",
       "      <td>0.08</td>\n",
       "      <td>2.422</td>\n",
       "      <td>2.5380</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-10</th>\n",
       "      <td>2.49</td>\n",
       "      <td>-0.01</td>\n",
       "      <td>2.438</td>\n",
       "      <td>2.5295</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-11</th>\n",
       "      <td>2.45</td>\n",
       "      <td>-0.04</td>\n",
       "      <td>2.450</td>\n",
       "      <td>2.5175</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-12</th>\n",
       "      <td>2.51</td>\n",
       "      <td>0.06</td>\n",
       "      <td>2.474</td>\n",
       "      <td>2.5095</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-13</th>\n",
       "      <td>2.51</td>\n",
       "      <td>0.00</td>\n",
       "      <td>2.492</td>\n",
       "      <td>2.5010</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-16</th>\n",
       "      <td>2.49</td>\n",
       "      <td>-0.02</td>\n",
       "      <td>2.490</td>\n",
       "      <td>2.4915</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-17</th>\n",
       "      <td>2.48</td>\n",
       "      <td>-0.01</td>\n",
       "      <td>2.488</td>\n",
       "      <td>2.4850</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-18</th>\n",
       "      <td>2.46</td>\n",
       "      <td>-0.02</td>\n",
       "      <td>2.490</td>\n",
       "      <td>2.4775</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-19</th>\n",
       "      <td>2.48</td>\n",
       "      <td>0.02</td>\n",
       "      <td>2.484</td>\n",
       "      <td>2.4720</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-20</th>\n",
       "      <td>2.54</td>\n",
       "      <td>0.06</td>\n",
       "      <td>2.490</td>\n",
       "      <td>2.4690</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-23</th>\n",
       "      <td>2.57</td>\n",
       "      <td>0.03</td>\n",
       "      <td>2.506</td>\n",
       "      <td>2.4700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-24</th>\n",
       "      <td>2.61</td>\n",
       "      <td>0.04</td>\n",
       "      <td>2.532</td>\n",
       "      <td>2.4745</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-25</th>\n",
       "      <td>2.61</td>\n",
       "      <td>0.00</td>\n",
       "      <td>2.562</td>\n",
       "      <td>2.4820</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-26</th>\n",
       "      <td>2.58</td>\n",
       "      <td>-0.03</td>\n",
       "      <td>2.582</td>\n",
       "      <td>2.4890</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-27</th>\n",
       "      <td>2.58</td>\n",
       "      <td>0.00</td>\n",
       "      <td>2.590</td>\n",
       "      <td>2.4935</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-30</th>\n",
       "      <td>2.59</td>\n",
       "      <td>0.01</td>\n",
       "      <td>2.594</td>\n",
       "      <td>2.5030</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-31</th>\n",
       "      <td>2.60</td>\n",
       "      <td>0.01</td>\n",
       "      <td>2.592</td>\n",
       "      <td>2.5125</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-08-01</th>\n",
       "      <td>2.53</td>\n",
       "      <td>-0.07</td>\n",
       "      <td>2.576</td>\n",
       "      <td>2.5195</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-08-02</th>\n",
       "      <td>2.48</td>\n",
       "      <td>-0.05</td>\n",
       "      <td>2.556</td>\n",
       "      <td>2.5240</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-08-03</th>\n",
       "      <td>2.46</td>\n",
       "      <td>-0.02</td>\n",
       "      <td>2.532</td>\n",
       "      <td>2.5260</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-08-06</th>\n",
       "      <td>2.46</td>\n",
       "      <td>0.00</td>\n",
       "      <td>2.506</td>\n",
       "      <td>2.5240</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>126 rows × 4 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "            close  change    ma5    ma20\n",
       "date                                    \n",
       "2018-01-29   3.12   -0.05  3.156  3.0445\n",
       "2018-01-30   3.07   -0.05  3.136  3.0525\n",
       "2018-01-31   3.11    0.04  3.124  3.0625\n",
       "2018-02-01   3.13    0.02  3.120  3.0730\n",
       "2018-02-02   3.15    0.02  3.116  3.0840\n",
       "2018-02-05   3.18    0.03  3.128  3.0960\n",
       "2018-02-06   3.11   -0.07  3.136  3.1030\n",
       "2018-02-07   3.02   -0.09  3.118  3.1040\n",
       "2018-02-08   2.94   -0.08  3.080  3.1015\n",
       "2018-02-09   2.80   -0.14  3.010  3.0905\n",
       "2018-02-12   2.80    0.00  2.934  3.0785\n",
       "2018-02-13   2.85    0.05  2.882  3.0680\n",
       "2018-02-14   2.87    0.02  2.852  3.0580\n",
       "2018-02-22   2.93    0.06  2.850  3.0490\n",
       "2018-02-23   2.96    0.03  2.882  3.0415\n",
       "2018-02-26   2.97    0.01  2.916  3.0335\n",
       "2018-02-27   2.92   -0.05  2.930  3.0210\n",
       "2018-02-28   2.87   -0.05  2.930  3.0060\n",
       "2018-03-01   2.88    0.01  2.920  2.9925\n",
       "2018-03-02   2.86   -0.02  2.900  2.9770\n",
       "2018-03-05   2.85   -0.01  2.876  2.9635\n",
       "2018-03-06   2.89    0.04  2.870  2.9545\n",
       "2018-03-07   2.87   -0.02  2.870  2.9425\n",
       "2018-03-08   2.89    0.02  2.872  2.9305\n",
       "2018-03-09   2.90    0.01  2.880  2.9180\n",
       "2018-03-12   2.91    0.01  2.892  2.9045\n",
       "2018-03-13   2.87   -0.04  2.888  2.8925\n",
       "2018-03-14   2.86   -0.01  2.886  2.8845\n",
       "2018-03-15   2.89    0.03  2.886  2.8820\n",
       "2018-03-16   2.86   -0.03  2.878  2.8850\n",
       "...           ...     ...    ...     ...\n",
       "2018-06-26   2.52   -0.03  2.574  2.6410\n",
       "2018-06-27   2.46   -0.06  2.544  2.6315\n",
       "2018-06-28   2.44   -0.02  2.514  2.6235\n",
       "2018-06-29   2.49    0.05  2.492  2.6155\n",
       "2018-07-02   2.40   -0.09  2.462  2.6035\n",
       "2018-07-03   2.41    0.01  2.440  2.5895\n",
       "2018-07-04   2.39   -0.02  2.426  2.5740\n",
       "2018-07-05   2.39    0.00  2.416  2.5590\n",
       "2018-07-06   2.42    0.03  2.402  2.5455\n",
       "2018-07-09   2.50    0.08  2.422  2.5380\n",
       "2018-07-10   2.49   -0.01  2.438  2.5295\n",
       "2018-07-11   2.45   -0.04  2.450  2.5175\n",
       "2018-07-12   2.51    0.06  2.474  2.5095\n",
       "2018-07-13   2.51    0.00  2.492  2.5010\n",
       "2018-07-16   2.49   -0.02  2.490  2.4915\n",
       "2018-07-17   2.48   -0.01  2.488  2.4850\n",
       "2018-07-18   2.46   -0.02  2.490  2.4775\n",
       "2018-07-19   2.48    0.02  2.484  2.4720\n",
       "2018-07-20   2.54    0.06  2.490  2.4690\n",
       "2018-07-23   2.57    0.03  2.506  2.4700\n",
       "2018-07-24   2.61    0.04  2.532  2.4745\n",
       "2018-07-25   2.61    0.00  2.562  2.4820\n",
       "2018-07-26   2.58   -0.03  2.582  2.4890\n",
       "2018-07-27   2.58    0.00  2.590  2.4935\n",
       "2018-07-30   2.59    0.01  2.594  2.5030\n",
       "2018-07-31   2.60    0.01  2.592  2.5125\n",
       "2018-08-01   2.53   -0.07  2.576  2.5195\n",
       "2018-08-02   2.48   -0.05  2.556  2.5240\n",
       "2018-08-03   2.46   -0.02  2.532  2.5260\n",
       "2018-08-06   2.46    0.00  2.506  2.5240\n",
       "\n",
       "[126 rows x 4 columns]"
      ]
     },
     "execution_count": 18,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df = df.dropna()\n",
    "df"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "C:\\ProgramData\\Anaconda3\\lib\\site-packages\\ipykernel_launcher.py:2: SettingWithCopyWarning: \n",
      "A value is trying to be set on a copy of a slice from a DataFrame\n",
      "\n",
      "See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
      "  \n",
      "C:\\ProgramData\\Anaconda3\\lib\\site-packages\\ipykernel_launcher.py:3: SettingWithCopyWarning: \n",
      "A value is trying to be set on a copy of a slice from a DataFrame\n",
      "\n",
      "See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
      "  This is separate from the ipykernel package so we can avoid doing imports until\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style>\n",
       "    .dataframe thead tr:only-child th {\n",
       "        text-align: right;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: left;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>close</th>\n",
       "      <th>change</th>\n",
       "      <th>ma5</th>\n",
       "      <th>ma20</th>\n",
       "      <th>pos</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>date</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>2018-01-29</th>\n",
       "      <td>3.12</td>\n",
       "      <td>-0.05</td>\n",
       "      <td>3.156</td>\n",
       "      <td>3.0445</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-30</th>\n",
       "      <td>3.07</td>\n",
       "      <td>-0.05</td>\n",
       "      <td>3.136</td>\n",
       "      <td>3.0525</td>\n",
       "      <td>10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-31</th>\n",
       "      <td>3.11</td>\n",
       "      <td>0.04</td>\n",
       "      <td>3.124</td>\n",
       "      <td>3.0625</td>\n",
       "      <td>10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-01</th>\n",
       "      <td>3.13</td>\n",
       "      <td>0.02</td>\n",
       "      <td>3.120</td>\n",
       "      <td>3.0730</td>\n",
       "      <td>10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-02</th>\n",
       "      <td>3.15</td>\n",
       "      <td>0.02</td>\n",
       "      <td>3.116</td>\n",
       "      <td>3.0840</td>\n",
       "      <td>10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-05</th>\n",
       "      <td>3.18</td>\n",
       "      <td>0.03</td>\n",
       "      <td>3.128</td>\n",
       "      <td>3.0960</td>\n",
       "      <td>10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-06</th>\n",
       "      <td>3.11</td>\n",
       "      <td>-0.07</td>\n",
       "      <td>3.136</td>\n",
       "      <td>3.1030</td>\n",
       "      <td>10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-07</th>\n",
       "      <td>3.02</td>\n",
       "      <td>-0.09</td>\n",
       "      <td>3.118</td>\n",
       "      <td>3.1040</td>\n",
       "      <td>10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-08</th>\n",
       "      <td>2.94</td>\n",
       "      <td>-0.08</td>\n",
       "      <td>3.080</td>\n",
       "      <td>3.1015</td>\n",
       "      <td>10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-09</th>\n",
       "      <td>2.80</td>\n",
       "      <td>-0.14</td>\n",
       "      <td>3.010</td>\n",
       "      <td>3.0905</td>\n",
       "      <td>-10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-12</th>\n",
       "      <td>2.80</td>\n",
       "      <td>0.00</td>\n",
       "      <td>2.934</td>\n",
       "      <td>3.0785</td>\n",
       "      <td>-10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-13</th>\n",
       "      <td>2.85</td>\n",
       "      <td>0.05</td>\n",
       "      <td>2.882</td>\n",
       "      <td>3.0680</td>\n",
       "      <td>-10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-14</th>\n",
       "      <td>2.87</td>\n",
       "      <td>0.02</td>\n",
       "      <td>2.852</td>\n",
       "      <td>3.0580</td>\n",
       "      <td>-10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-22</th>\n",
       "      <td>2.93</td>\n",
       "      <td>0.06</td>\n",
       "      <td>2.850</td>\n",
       "      <td>3.0490</td>\n",
       "      <td>-10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-23</th>\n",
       "      <td>2.96</td>\n",
       "      <td>0.03</td>\n",
       "      <td>2.882</td>\n",
       "      <td>3.0415</td>\n",
       "      <td>-10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-26</th>\n",
       "      <td>2.97</td>\n",
       "      <td>0.01</td>\n",
       "      <td>2.916</td>\n",
       "      <td>3.0335</td>\n",
       "      <td>-10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-27</th>\n",
       "      <td>2.92</td>\n",
       "      <td>-0.05</td>\n",
       "      <td>2.930</td>\n",
       "      <td>3.0210</td>\n",
       "      <td>-10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-28</th>\n",
       "      <td>2.87</td>\n",
       "      <td>-0.05</td>\n",
       "      <td>2.930</td>\n",
       "      <td>3.0060</td>\n",
       "      <td>-10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-01</th>\n",
       "      <td>2.88</td>\n",
       "      <td>0.01</td>\n",
       "      <td>2.920</td>\n",
       "      <td>2.9925</td>\n",
       "      <td>-10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-02</th>\n",
       "      <td>2.86</td>\n",
       "      <td>-0.02</td>\n",
       "      <td>2.900</td>\n",
       "      <td>2.9770</td>\n",
       "      <td>-10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-05</th>\n",
       "      <td>2.85</td>\n",
       "      <td>-0.01</td>\n",
       "      <td>2.876</td>\n",
       "      <td>2.9635</td>\n",
       "      <td>-10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-06</th>\n",
       "      <td>2.89</td>\n",
       "      <td>0.04</td>\n",
       "      <td>2.870</td>\n",
       "      <td>2.9545</td>\n",
       "      <td>-10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-07</th>\n",
       "      <td>2.87</td>\n",
       "      <td>-0.02</td>\n",
       "      <td>2.870</td>\n",
       "      <td>2.9425</td>\n",
       "      <td>-10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-08</th>\n",
       "      <td>2.89</td>\n",
       "      <td>0.02</td>\n",
       "      <td>2.872</td>\n",
       "      <td>2.9305</td>\n",
       "      <td>-10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-09</th>\n",
       "      <td>2.90</td>\n",
       "      <td>0.01</td>\n",
       "      <td>2.880</td>\n",
       "      <td>2.9180</td>\n",
       "      <td>-10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-12</th>\n",
       "      <td>2.91</td>\n",
       "      <td>0.01</td>\n",
       "      <td>2.892</td>\n",
       "      <td>2.9045</td>\n",
       "      <td>-10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-13</th>\n",
       "      <td>2.87</td>\n",
       "      <td>-0.04</td>\n",
       "      <td>2.888</td>\n",
       "      <td>2.8925</td>\n",
       "      <td>-10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-14</th>\n",
       "      <td>2.86</td>\n",
       "      <td>-0.01</td>\n",
       "      <td>2.886</td>\n",
       "      <td>2.8845</td>\n",
       "      <td>-10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-15</th>\n",
       "      <td>2.89</td>\n",
       "      <td>0.03</td>\n",
       "      <td>2.886</td>\n",
       "      <td>2.8820</td>\n",
       "      <td>10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-16</th>\n",
       "      <td>2.86</td>\n",
       "      <td>-0.03</td>\n",
       "      <td>2.878</td>\n",
       "      <td>2.8850</td>\n",
       "      <td>10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-06-26</th>\n",
       "      <td>2.52</td>\n",
       "      <td>-0.03</td>\n",
       "      <td>2.574</td>\n",
       "      <td>2.6410</td>\n",
       "      <td>-10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-06-27</th>\n",
       "      <td>2.46</td>\n",
       "      <td>-0.06</td>\n",
       "      <td>2.544</td>\n",
       "      <td>2.6315</td>\n",
       "      <td>-10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-06-28</th>\n",
       "      <td>2.44</td>\n",
       "      <td>-0.02</td>\n",
       "      <td>2.514</td>\n",
       "      <td>2.6235</td>\n",
       "      <td>-10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-06-29</th>\n",
       "      <td>2.49</td>\n",
       "      <td>0.05</td>\n",
       "      <td>2.492</td>\n",
       "      <td>2.6155</td>\n",
       "      <td>-10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-02</th>\n",
       "      <td>2.40</td>\n",
       "      <td>-0.09</td>\n",
       "      <td>2.462</td>\n",
       "      <td>2.6035</td>\n",
       "      <td>-10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-03</th>\n",
       "      <td>2.41</td>\n",
       "      <td>0.01</td>\n",
       "      <td>2.440</td>\n",
       "      <td>2.5895</td>\n",
       "      <td>-10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-04</th>\n",
       "      <td>2.39</td>\n",
       "      <td>-0.02</td>\n",
       "      <td>2.426</td>\n",
       "      <td>2.5740</td>\n",
       "      <td>-10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-05</th>\n",
       "      <td>2.39</td>\n",
       "      <td>0.00</td>\n",
       "      <td>2.416</td>\n",
       "      <td>2.5590</td>\n",
       "      <td>-10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-06</th>\n",
       "      <td>2.42</td>\n",
       "      <td>0.03</td>\n",
       "      <td>2.402</td>\n",
       "      <td>2.5455</td>\n",
       "      <td>-10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-09</th>\n",
       "      <td>2.50</td>\n",
       "      <td>0.08</td>\n",
       "      <td>2.422</td>\n",
       "      <td>2.5380</td>\n",
       "      <td>-10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-10</th>\n",
       "      <td>2.49</td>\n",
       "      <td>-0.01</td>\n",
       "      <td>2.438</td>\n",
       "      <td>2.5295</td>\n",
       "      <td>-10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-11</th>\n",
       "      <td>2.45</td>\n",
       "      <td>-0.04</td>\n",
       "      <td>2.450</td>\n",
       "      <td>2.5175</td>\n",
       "      <td>-10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-12</th>\n",
       "      <td>2.51</td>\n",
       "      <td>0.06</td>\n",
       "      <td>2.474</td>\n",
       "      <td>2.5095</td>\n",
       "      <td>-10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-13</th>\n",
       "      <td>2.51</td>\n",
       "      <td>0.00</td>\n",
       "      <td>2.492</td>\n",
       "      <td>2.5010</td>\n",
       "      <td>-10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-16</th>\n",
       "      <td>2.49</td>\n",
       "      <td>-0.02</td>\n",
       "      <td>2.490</td>\n",
       "      <td>2.4915</td>\n",
       "      <td>-10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-17</th>\n",
       "      <td>2.48</td>\n",
       "      <td>-0.01</td>\n",
       "      <td>2.488</td>\n",
       "      <td>2.4850</td>\n",
       "      <td>-10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-18</th>\n",
       "      <td>2.46</td>\n",
       "      <td>-0.02</td>\n",
       "      <td>2.490</td>\n",
       "      <td>2.4775</td>\n",
       "      <td>10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-19</th>\n",
       "      <td>2.48</td>\n",
       "      <td>0.02</td>\n",
       "      <td>2.484</td>\n",
       "      <td>2.4720</td>\n",
       "      <td>10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-20</th>\n",
       "      <td>2.54</td>\n",
       "      <td>0.06</td>\n",
       "      <td>2.490</td>\n",
       "      <td>2.4690</td>\n",
       "      <td>10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-23</th>\n",
       "      <td>2.57</td>\n",
       "      <td>0.03</td>\n",
       "      <td>2.506</td>\n",
       "      <td>2.4700</td>\n",
       "      <td>10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-24</th>\n",
       "      <td>2.61</td>\n",
       "      <td>0.04</td>\n",
       "      <td>2.532</td>\n",
       "      <td>2.4745</td>\n",
       "      <td>10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-25</th>\n",
       "      <td>2.61</td>\n",
       "      <td>0.00</td>\n",
       "      <td>2.562</td>\n",
       "      <td>2.4820</td>\n",
       "      <td>10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-26</th>\n",
       "      <td>2.58</td>\n",
       "      <td>-0.03</td>\n",
       "      <td>2.582</td>\n",
       "      <td>2.4890</td>\n",
       "      <td>10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-27</th>\n",
       "      <td>2.58</td>\n",
       "      <td>0.00</td>\n",
       "      <td>2.590</td>\n",
       "      <td>2.4935</td>\n",
       "      <td>10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-30</th>\n",
       "      <td>2.59</td>\n",
       "      <td>0.01</td>\n",
       "      <td>2.594</td>\n",
       "      <td>2.5030</td>\n",
       "      <td>10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-31</th>\n",
       "      <td>2.60</td>\n",
       "      <td>0.01</td>\n",
       "      <td>2.592</td>\n",
       "      <td>2.5125</td>\n",
       "      <td>10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-08-01</th>\n",
       "      <td>2.53</td>\n",
       "      <td>-0.07</td>\n",
       "      <td>2.576</td>\n",
       "      <td>2.5195</td>\n",
       "      <td>10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-08-02</th>\n",
       "      <td>2.48</td>\n",
       "      <td>-0.05</td>\n",
       "      <td>2.556</td>\n",
       "      <td>2.5240</td>\n",
       "      <td>10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-08-03</th>\n",
       "      <td>2.46</td>\n",
       "      <td>-0.02</td>\n",
       "      <td>2.532</td>\n",
       "      <td>2.5260</td>\n",
       "      <td>10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-08-06</th>\n",
       "      <td>2.46</td>\n",
       "      <td>0.00</td>\n",
       "      <td>2.506</td>\n",
       "      <td>2.5240</td>\n",
       "      <td>10000</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>126 rows × 5 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "            close  change    ma5    ma20    pos\n",
       "date                                           \n",
       "2018-01-29   3.12   -0.05  3.156  3.0445      0\n",
       "2018-01-30   3.07   -0.05  3.136  3.0525  10000\n",
       "2018-01-31   3.11    0.04  3.124  3.0625  10000\n",
       "2018-02-01   3.13    0.02  3.120  3.0730  10000\n",
       "2018-02-02   3.15    0.02  3.116  3.0840  10000\n",
       "2018-02-05   3.18    0.03  3.128  3.0960  10000\n",
       "2018-02-06   3.11   -0.07  3.136  3.1030  10000\n",
       "2018-02-07   3.02   -0.09  3.118  3.1040  10000\n",
       "2018-02-08   2.94   -0.08  3.080  3.1015  10000\n",
       "2018-02-09   2.80   -0.14  3.010  3.0905 -10000\n",
       "2018-02-12   2.80    0.00  2.934  3.0785 -10000\n",
       "2018-02-13   2.85    0.05  2.882  3.0680 -10000\n",
       "2018-02-14   2.87    0.02  2.852  3.0580 -10000\n",
       "2018-02-22   2.93    0.06  2.850  3.0490 -10000\n",
       "2018-02-23   2.96    0.03  2.882  3.0415 -10000\n",
       "2018-02-26   2.97    0.01  2.916  3.0335 -10000\n",
       "2018-02-27   2.92   -0.05  2.930  3.0210 -10000\n",
       "2018-02-28   2.87   -0.05  2.930  3.0060 -10000\n",
       "2018-03-01   2.88    0.01  2.920  2.9925 -10000\n",
       "2018-03-02   2.86   -0.02  2.900  2.9770 -10000\n",
       "2018-03-05   2.85   -0.01  2.876  2.9635 -10000\n",
       "2018-03-06   2.89    0.04  2.870  2.9545 -10000\n",
       "2018-03-07   2.87   -0.02  2.870  2.9425 -10000\n",
       "2018-03-08   2.89    0.02  2.872  2.9305 -10000\n",
       "2018-03-09   2.90    0.01  2.880  2.9180 -10000\n",
       "2018-03-12   2.91    0.01  2.892  2.9045 -10000\n",
       "2018-03-13   2.87   -0.04  2.888  2.8925 -10000\n",
       "2018-03-14   2.86   -0.01  2.886  2.8845 -10000\n",
       "2018-03-15   2.89    0.03  2.886  2.8820  10000\n",
       "2018-03-16   2.86   -0.03  2.878  2.8850  10000\n",
       "...           ...     ...    ...     ...    ...\n",
       "2018-06-26   2.52   -0.03  2.574  2.6410 -10000\n",
       "2018-06-27   2.46   -0.06  2.544  2.6315 -10000\n",
       "2018-06-28   2.44   -0.02  2.514  2.6235 -10000\n",
       "2018-06-29   2.49    0.05  2.492  2.6155 -10000\n",
       "2018-07-02   2.40   -0.09  2.462  2.6035 -10000\n",
       "2018-07-03   2.41    0.01  2.440  2.5895 -10000\n",
       "2018-07-04   2.39   -0.02  2.426  2.5740 -10000\n",
       "2018-07-05   2.39    0.00  2.416  2.5590 -10000\n",
       "2018-07-06   2.42    0.03  2.402  2.5455 -10000\n",
       "2018-07-09   2.50    0.08  2.422  2.5380 -10000\n",
       "2018-07-10   2.49   -0.01  2.438  2.5295 -10000\n",
       "2018-07-11   2.45   -0.04  2.450  2.5175 -10000\n",
       "2018-07-12   2.51    0.06  2.474  2.5095 -10000\n",
       "2018-07-13   2.51    0.00  2.492  2.5010 -10000\n",
       "2018-07-16   2.49   -0.02  2.490  2.4915 -10000\n",
       "2018-07-17   2.48   -0.01  2.488  2.4850 -10000\n",
       "2018-07-18   2.46   -0.02  2.490  2.4775  10000\n",
       "2018-07-19   2.48    0.02  2.484  2.4720  10000\n",
       "2018-07-20   2.54    0.06  2.490  2.4690  10000\n",
       "2018-07-23   2.57    0.03  2.506  2.4700  10000\n",
       "2018-07-24   2.61    0.04  2.532  2.4745  10000\n",
       "2018-07-25   2.61    0.00  2.562  2.4820  10000\n",
       "2018-07-26   2.58   -0.03  2.582  2.4890  10000\n",
       "2018-07-27   2.58    0.00  2.590  2.4935  10000\n",
       "2018-07-30   2.59    0.01  2.594  2.5030  10000\n",
       "2018-07-31   2.60    0.01  2.592  2.5125  10000\n",
       "2018-08-01   2.53   -0.07  2.576  2.5195  10000\n",
       "2018-08-02   2.48   -0.05  2.556  2.5240  10000\n",
       "2018-08-03   2.46   -0.02  2.532  2.5260  10000\n",
       "2018-08-06   2.46    0.00  2.506  2.5240  10000\n",
       "\n",
       "[126 rows x 5 columns]"
      ]
     },
     "execution_count": 20,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df['pos'] = 0\n",
    "df['pos'][df['ma5'].shift(1)>df['ma20'].shift(1)] = 10000\n",
    "df['pos'][df['ma5'].shift(1)<=df['ma20'].shift(1)] = -10000\n",
    "df"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "C:\\ProgramData\\Anaconda3\\lib\\site-packages\\ipykernel_launcher.py:2: SettingWithCopyWarning: \n",
      "A value is trying to be set on a copy of a slice from a DataFrame\n",
      "\n",
      "See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
      "  \n",
      "C:\\ProgramData\\Anaconda3\\lib\\site-packages\\ipykernel_launcher.py:3: SettingWithCopyWarning: \n",
      "A value is trying to be set on a copy of a slice from a DataFrame\n",
      "\n",
      "See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
      "  This is separate from the ipykernel package so we can avoid doing imports until\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style>\n",
       "    .dataframe thead tr:only-child th {\n",
       "        text-align: right;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: left;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>close</th>\n",
       "      <th>change</th>\n",
       "      <th>ma5</th>\n",
       "      <th>ma20</th>\n",
       "      <th>pos</th>\n",
       "      <th>fee</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>date</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>2018-01-29</th>\n",
       "      <td>3.12</td>\n",
       "      <td>-0.05</td>\n",
       "      <td>3.156</td>\n",
       "      <td>3.0445</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-30</th>\n",
       "      <td>3.07</td>\n",
       "      <td>-0.05</td>\n",
       "      <td>3.136</td>\n",
       "      <td>3.0525</td>\n",
       "      <td>10000</td>\n",
       "      <td>18.42</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-31</th>\n",
       "      <td>3.11</td>\n",
       "      <td>0.04</td>\n",
       "      <td>3.124</td>\n",
       "      <td>3.0625</td>\n",
       "      <td>10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-01</th>\n",
       "      <td>3.13</td>\n",
       "      <td>0.02</td>\n",
       "      <td>3.120</td>\n",
       "      <td>3.0730</td>\n",
       "      <td>10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-02</th>\n",
       "      <td>3.15</td>\n",
       "      <td>0.02</td>\n",
       "      <td>3.116</td>\n",
       "      <td>3.0840</td>\n",
       "      <td>10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-05</th>\n",
       "      <td>3.18</td>\n",
       "      <td>0.03</td>\n",
       "      <td>3.128</td>\n",
       "      <td>3.0960</td>\n",
       "      <td>10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-06</th>\n",
       "      <td>3.11</td>\n",
       "      <td>-0.07</td>\n",
       "      <td>3.136</td>\n",
       "      <td>3.1030</td>\n",
       "      <td>10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-07</th>\n",
       "      <td>3.02</td>\n",
       "      <td>-0.09</td>\n",
       "      <td>3.118</td>\n",
       "      <td>3.1040</td>\n",
       "      <td>10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-08</th>\n",
       "      <td>2.94</td>\n",
       "      <td>-0.08</td>\n",
       "      <td>3.080</td>\n",
       "      <td>3.1015</td>\n",
       "      <td>10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-09</th>\n",
       "      <td>2.80</td>\n",
       "      <td>-0.14</td>\n",
       "      <td>3.010</td>\n",
       "      <td>3.0905</td>\n",
       "      <td>-10000</td>\n",
       "      <td>16.80</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-12</th>\n",
       "      <td>2.80</td>\n",
       "      <td>0.00</td>\n",
       "      <td>2.934</td>\n",
       "      <td>3.0785</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-13</th>\n",
       "      <td>2.85</td>\n",
       "      <td>0.05</td>\n",
       "      <td>2.882</td>\n",
       "      <td>3.0680</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-14</th>\n",
       "      <td>2.87</td>\n",
       "      <td>0.02</td>\n",
       "      <td>2.852</td>\n",
       "      <td>3.0580</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-22</th>\n",
       "      <td>2.93</td>\n",
       "      <td>0.06</td>\n",
       "      <td>2.850</td>\n",
       "      <td>3.0490</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-23</th>\n",
       "      <td>2.96</td>\n",
       "      <td>0.03</td>\n",
       "      <td>2.882</td>\n",
       "      <td>3.0415</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-26</th>\n",
       "      <td>2.97</td>\n",
       "      <td>0.01</td>\n",
       "      <td>2.916</td>\n",
       "      <td>3.0335</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-27</th>\n",
       "      <td>2.92</td>\n",
       "      <td>-0.05</td>\n",
       "      <td>2.930</td>\n",
       "      <td>3.0210</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-28</th>\n",
       "      <td>2.87</td>\n",
       "      <td>-0.05</td>\n",
       "      <td>2.930</td>\n",
       "      <td>3.0060</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-01</th>\n",
       "      <td>2.88</td>\n",
       "      <td>0.01</td>\n",
       "      <td>2.920</td>\n",
       "      <td>2.9925</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-02</th>\n",
       "      <td>2.86</td>\n",
       "      <td>-0.02</td>\n",
       "      <td>2.900</td>\n",
       "      <td>2.9770</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-05</th>\n",
       "      <td>2.85</td>\n",
       "      <td>-0.01</td>\n",
       "      <td>2.876</td>\n",
       "      <td>2.9635</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-06</th>\n",
       "      <td>2.89</td>\n",
       "      <td>0.04</td>\n",
       "      <td>2.870</td>\n",
       "      <td>2.9545</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-07</th>\n",
       "      <td>2.87</td>\n",
       "      <td>-0.02</td>\n",
       "      <td>2.870</td>\n",
       "      <td>2.9425</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-08</th>\n",
       "      <td>2.89</td>\n",
       "      <td>0.02</td>\n",
       "      <td>2.872</td>\n",
       "      <td>2.9305</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-09</th>\n",
       "      <td>2.90</td>\n",
       "      <td>0.01</td>\n",
       "      <td>2.880</td>\n",
       "      <td>2.9180</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-12</th>\n",
       "      <td>2.91</td>\n",
       "      <td>0.01</td>\n",
       "      <td>2.892</td>\n",
       "      <td>2.9045</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-13</th>\n",
       "      <td>2.87</td>\n",
       "      <td>-0.04</td>\n",
       "      <td>2.888</td>\n",
       "      <td>2.8925</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-14</th>\n",
       "      <td>2.86</td>\n",
       "      <td>-0.01</td>\n",
       "      <td>2.886</td>\n",
       "      <td>2.8845</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-15</th>\n",
       "      <td>2.89</td>\n",
       "      <td>0.03</td>\n",
       "      <td>2.886</td>\n",
       "      <td>2.8820</td>\n",
       "      <td>10000</td>\n",
       "      <td>17.34</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-16</th>\n",
       "      <td>2.86</td>\n",
       "      <td>-0.03</td>\n",
       "      <td>2.878</td>\n",
       "      <td>2.8850</td>\n",
       "      <td>10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-06-26</th>\n",
       "      <td>2.52</td>\n",
       "      <td>-0.03</td>\n",
       "      <td>2.574</td>\n",
       "      <td>2.6410</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-06-27</th>\n",
       "      <td>2.46</td>\n",
       "      <td>-0.06</td>\n",
       "      <td>2.544</td>\n",
       "      <td>2.6315</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-06-28</th>\n",
       "      <td>2.44</td>\n",
       "      <td>-0.02</td>\n",
       "      <td>2.514</td>\n",
       "      <td>2.6235</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-06-29</th>\n",
       "      <td>2.49</td>\n",
       "      <td>0.05</td>\n",
       "      <td>2.492</td>\n",
       "      <td>2.6155</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-02</th>\n",
       "      <td>2.40</td>\n",
       "      <td>-0.09</td>\n",
       "      <td>2.462</td>\n",
       "      <td>2.6035</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-03</th>\n",
       "      <td>2.41</td>\n",
       "      <td>0.01</td>\n",
       "      <td>2.440</td>\n",
       "      <td>2.5895</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-04</th>\n",
       "      <td>2.39</td>\n",
       "      <td>-0.02</td>\n",
       "      <td>2.426</td>\n",
       "      <td>2.5740</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-05</th>\n",
       "      <td>2.39</td>\n",
       "      <td>0.00</td>\n",
       "      <td>2.416</td>\n",
       "      <td>2.5590</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-06</th>\n",
       "      <td>2.42</td>\n",
       "      <td>0.03</td>\n",
       "      <td>2.402</td>\n",
       "      <td>2.5455</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-09</th>\n",
       "      <td>2.50</td>\n",
       "      <td>0.08</td>\n",
       "      <td>2.422</td>\n",
       "      <td>2.5380</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-10</th>\n",
       "      <td>2.49</td>\n",
       "      <td>-0.01</td>\n",
       "      <td>2.438</td>\n",
       "      <td>2.5295</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-11</th>\n",
       "      <td>2.45</td>\n",
       "      <td>-0.04</td>\n",
       "      <td>2.450</td>\n",
       "      <td>2.5175</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-12</th>\n",
       "      <td>2.51</td>\n",
       "      <td>0.06</td>\n",
       "      <td>2.474</td>\n",
       "      <td>2.5095</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-13</th>\n",
       "      <td>2.51</td>\n",
       "      <td>0.00</td>\n",
       "      <td>2.492</td>\n",
       "      <td>2.5010</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-16</th>\n",
       "      <td>2.49</td>\n",
       "      <td>-0.02</td>\n",
       "      <td>2.490</td>\n",
       "      <td>2.4915</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-17</th>\n",
       "      <td>2.48</td>\n",
       "      <td>-0.01</td>\n",
       "      <td>2.488</td>\n",
       "      <td>2.4850</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-18</th>\n",
       "      <td>2.46</td>\n",
       "      <td>-0.02</td>\n",
       "      <td>2.490</td>\n",
       "      <td>2.4775</td>\n",
       "      <td>10000</td>\n",
       "      <td>14.76</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-19</th>\n",
       "      <td>2.48</td>\n",
       "      <td>0.02</td>\n",
       "      <td>2.484</td>\n",
       "      <td>2.4720</td>\n",
       "      <td>10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-20</th>\n",
       "      <td>2.54</td>\n",
       "      <td>0.06</td>\n",
       "      <td>2.490</td>\n",
       "      <td>2.4690</td>\n",
       "      <td>10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-23</th>\n",
       "      <td>2.57</td>\n",
       "      <td>0.03</td>\n",
       "      <td>2.506</td>\n",
       "      <td>2.4700</td>\n",
       "      <td>10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-24</th>\n",
       "      <td>2.61</td>\n",
       "      <td>0.04</td>\n",
       "      <td>2.532</td>\n",
       "      <td>2.4745</td>\n",
       "      <td>10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-25</th>\n",
       "      <td>2.61</td>\n",
       "      <td>0.00</td>\n",
       "      <td>2.562</td>\n",
       "      <td>2.4820</td>\n",
       "      <td>10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-26</th>\n",
       "      <td>2.58</td>\n",
       "      <td>-0.03</td>\n",
       "      <td>2.582</td>\n",
       "      <td>2.4890</td>\n",
       "      <td>10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-27</th>\n",
       "      <td>2.58</td>\n",
       "      <td>0.00</td>\n",
       "      <td>2.590</td>\n",
       "      <td>2.4935</td>\n",
       "      <td>10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-30</th>\n",
       "      <td>2.59</td>\n",
       "      <td>0.01</td>\n",
       "      <td>2.594</td>\n",
       "      <td>2.5030</td>\n",
       "      <td>10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-31</th>\n",
       "      <td>2.60</td>\n",
       "      <td>0.01</td>\n",
       "      <td>2.592</td>\n",
       "      <td>2.5125</td>\n",
       "      <td>10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-08-01</th>\n",
       "      <td>2.53</td>\n",
       "      <td>-0.07</td>\n",
       "      <td>2.576</td>\n",
       "      <td>2.5195</td>\n",
       "      <td>10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-08-02</th>\n",
       "      <td>2.48</td>\n",
       "      <td>-0.05</td>\n",
       "      <td>2.556</td>\n",
       "      <td>2.5240</td>\n",
       "      <td>10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-08-03</th>\n",
       "      <td>2.46</td>\n",
       "      <td>-0.02</td>\n",
       "      <td>2.532</td>\n",
       "      <td>2.5260</td>\n",
       "      <td>10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-08-06</th>\n",
       "      <td>2.46</td>\n",
       "      <td>0.00</td>\n",
       "      <td>2.506</td>\n",
       "      <td>2.5240</td>\n",
       "      <td>10000</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>126 rows × 6 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "            close  change    ma5    ma20    pos    fee\n",
       "date                                                  \n",
       "2018-01-29   3.12   -0.05  3.156  3.0445      0   0.00\n",
       "2018-01-30   3.07   -0.05  3.136  3.0525  10000  18.42\n",
       "2018-01-31   3.11    0.04  3.124  3.0625  10000   0.00\n",
       "2018-02-01   3.13    0.02  3.120  3.0730  10000   0.00\n",
       "2018-02-02   3.15    0.02  3.116  3.0840  10000   0.00\n",
       "2018-02-05   3.18    0.03  3.128  3.0960  10000   0.00\n",
       "2018-02-06   3.11   -0.07  3.136  3.1030  10000   0.00\n",
       "2018-02-07   3.02   -0.09  3.118  3.1040  10000   0.00\n",
       "2018-02-08   2.94   -0.08  3.080  3.1015  10000   0.00\n",
       "2018-02-09   2.80   -0.14  3.010  3.0905 -10000  16.80\n",
       "2018-02-12   2.80    0.00  2.934  3.0785 -10000   0.00\n",
       "2018-02-13   2.85    0.05  2.882  3.0680 -10000   0.00\n",
       "2018-02-14   2.87    0.02  2.852  3.0580 -10000   0.00\n",
       "2018-02-22   2.93    0.06  2.850  3.0490 -10000   0.00\n",
       "2018-02-23   2.96    0.03  2.882  3.0415 -10000   0.00\n",
       "2018-02-26   2.97    0.01  2.916  3.0335 -10000   0.00\n",
       "2018-02-27   2.92   -0.05  2.930  3.0210 -10000   0.00\n",
       "2018-02-28   2.87   -0.05  2.930  3.0060 -10000   0.00\n",
       "2018-03-01   2.88    0.01  2.920  2.9925 -10000   0.00\n",
       "2018-03-02   2.86   -0.02  2.900  2.9770 -10000   0.00\n",
       "2018-03-05   2.85   -0.01  2.876  2.9635 -10000   0.00\n",
       "2018-03-06   2.89    0.04  2.870  2.9545 -10000   0.00\n",
       "2018-03-07   2.87   -0.02  2.870  2.9425 -10000   0.00\n",
       "2018-03-08   2.89    0.02  2.872  2.9305 -10000   0.00\n",
       "2018-03-09   2.90    0.01  2.880  2.9180 -10000   0.00\n",
       "2018-03-12   2.91    0.01  2.892  2.9045 -10000   0.00\n",
       "2018-03-13   2.87   -0.04  2.888  2.8925 -10000   0.00\n",
       "2018-03-14   2.86   -0.01  2.886  2.8845 -10000   0.00\n",
       "2018-03-15   2.89    0.03  2.886  2.8820  10000  17.34\n",
       "2018-03-16   2.86   -0.03  2.878  2.8850  10000   0.00\n",
       "...           ...     ...    ...     ...    ...    ...\n",
       "2018-06-26   2.52   -0.03  2.574  2.6410 -10000   0.00\n",
       "2018-06-27   2.46   -0.06  2.544  2.6315 -10000   0.00\n",
       "2018-06-28   2.44   -0.02  2.514  2.6235 -10000   0.00\n",
       "2018-06-29   2.49    0.05  2.492  2.6155 -10000   0.00\n",
       "2018-07-02   2.40   -0.09  2.462  2.6035 -10000   0.00\n",
       "2018-07-03   2.41    0.01  2.440  2.5895 -10000   0.00\n",
       "2018-07-04   2.39   -0.02  2.426  2.5740 -10000   0.00\n",
       "2018-07-05   2.39    0.00  2.416  2.5590 -10000   0.00\n",
       "2018-07-06   2.42    0.03  2.402  2.5455 -10000   0.00\n",
       "2018-07-09   2.50    0.08  2.422  2.5380 -10000   0.00\n",
       "2018-07-10   2.49   -0.01  2.438  2.5295 -10000   0.00\n",
       "2018-07-11   2.45   -0.04  2.450  2.5175 -10000   0.00\n",
       "2018-07-12   2.51    0.06  2.474  2.5095 -10000   0.00\n",
       "2018-07-13   2.51    0.00  2.492  2.5010 -10000   0.00\n",
       "2018-07-16   2.49   -0.02  2.490  2.4915 -10000   0.00\n",
       "2018-07-17   2.48   -0.01  2.488  2.4850 -10000   0.00\n",
       "2018-07-18   2.46   -0.02  2.490  2.4775  10000  14.76\n",
       "2018-07-19   2.48    0.02  2.484  2.4720  10000   0.00\n",
       "2018-07-20   2.54    0.06  2.490  2.4690  10000   0.00\n",
       "2018-07-23   2.57    0.03  2.506  2.4700  10000   0.00\n",
       "2018-07-24   2.61    0.04  2.532  2.4745  10000   0.00\n",
       "2018-07-25   2.61    0.00  2.562  2.4820  10000   0.00\n",
       "2018-07-26   2.58   -0.03  2.582  2.4890  10000   0.00\n",
       "2018-07-27   2.58    0.00  2.590  2.4935  10000   0.00\n",
       "2018-07-30   2.59    0.01  2.594  2.5030  10000   0.00\n",
       "2018-07-31   2.60    0.01  2.592  2.5125  10000   0.00\n",
       "2018-08-01   2.53   -0.07  2.576  2.5195  10000   0.00\n",
       "2018-08-02   2.48   -0.05  2.556  2.5240  10000   0.00\n",
       "2018-08-03   2.46   -0.02  2.532  2.5260  10000   0.00\n",
       "2018-08-06   2.46    0.00  2.506  2.5240  10000   0.00\n",
       "\n",
       "[126 rows x 6 columns]"
      ]
     },
     "execution_count": 22,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df['fee'] = 0\n",
    "df['fee'][df['pos'] != df['pos'].shift(1)] = df['close']*0.0003*20000\n",
    "df['fee'][0] = 0\n",
    "df"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style>\n",
       "    .dataframe thead tr:only-child th {\n",
       "        text-align: right;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: left;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>close</th>\n",
       "      <th>change</th>\n",
       "      <th>ma5</th>\n",
       "      <th>ma20</th>\n",
       "      <th>pos</th>\n",
       "      <th>fee</th>\n",
       "      <th>pnl</th>\n",
       "      <th>netpnl</th>\n",
       "      <th>cumpnl</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>date</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>2018-01-29</th>\n",
       "      <td>3.12</td>\n",
       "      <td>-0.05</td>\n",
       "      <td>3.156</td>\n",
       "      <td>3.0445</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "      <td>-0.0</td>\n",
       "      <td>-0.00</td>\n",
       "      <td>-0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-30</th>\n",
       "      <td>3.07</td>\n",
       "      <td>-0.05</td>\n",
       "      <td>3.136</td>\n",
       "      <td>3.0525</td>\n",
       "      <td>10000</td>\n",
       "      <td>18.42</td>\n",
       "      <td>-500.0</td>\n",
       "      <td>-518.42</td>\n",
       "      <td>-518.42</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-31</th>\n",
       "      <td>3.11</td>\n",
       "      <td>0.04</td>\n",
       "      <td>3.124</td>\n",
       "      <td>3.0625</td>\n",
       "      <td>10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>400.0</td>\n",
       "      <td>400.00</td>\n",
       "      <td>-118.42</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-01</th>\n",
       "      <td>3.13</td>\n",
       "      <td>0.02</td>\n",
       "      <td>3.120</td>\n",
       "      <td>3.0730</td>\n",
       "      <td>10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>200.0</td>\n",
       "      <td>200.00</td>\n",
       "      <td>81.58</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-02</th>\n",
       "      <td>3.15</td>\n",
       "      <td>0.02</td>\n",
       "      <td>3.116</td>\n",
       "      <td>3.0840</td>\n",
       "      <td>10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>200.0</td>\n",
       "      <td>200.00</td>\n",
       "      <td>281.58</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-05</th>\n",
       "      <td>3.18</td>\n",
       "      <td>0.03</td>\n",
       "      <td>3.128</td>\n",
       "      <td>3.0960</td>\n",
       "      <td>10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>300.0</td>\n",
       "      <td>300.00</td>\n",
       "      <td>581.58</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-06</th>\n",
       "      <td>3.11</td>\n",
       "      <td>-0.07</td>\n",
       "      <td>3.136</td>\n",
       "      <td>3.1030</td>\n",
       "      <td>10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>-700.0</td>\n",
       "      <td>-700.00</td>\n",
       "      <td>-118.42</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-07</th>\n",
       "      <td>3.02</td>\n",
       "      <td>-0.09</td>\n",
       "      <td>3.118</td>\n",
       "      <td>3.1040</td>\n",
       "      <td>10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>-900.0</td>\n",
       "      <td>-900.00</td>\n",
       "      <td>-1018.42</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-08</th>\n",
       "      <td>2.94</td>\n",
       "      <td>-0.08</td>\n",
       "      <td>3.080</td>\n",
       "      <td>3.1015</td>\n",
       "      <td>10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>-800.0</td>\n",
       "      <td>-800.00</td>\n",
       "      <td>-1818.42</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-09</th>\n",
       "      <td>2.80</td>\n",
       "      <td>-0.14</td>\n",
       "      <td>3.010</td>\n",
       "      <td>3.0905</td>\n",
       "      <td>-10000</td>\n",
       "      <td>16.80</td>\n",
       "      <td>1400.0</td>\n",
       "      <td>1383.20</td>\n",
       "      <td>-435.22</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-12</th>\n",
       "      <td>2.80</td>\n",
       "      <td>0.00</td>\n",
       "      <td>2.934</td>\n",
       "      <td>3.0785</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>-0.0</td>\n",
       "      <td>-0.00</td>\n",
       "      <td>-435.22</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-13</th>\n",
       "      <td>2.85</td>\n",
       "      <td>0.05</td>\n",
       "      <td>2.882</td>\n",
       "      <td>3.0680</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>-500.0</td>\n",
       "      <td>-500.00</td>\n",
       "      <td>-935.22</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-14</th>\n",
       "      <td>2.87</td>\n",
       "      <td>0.02</td>\n",
       "      <td>2.852</td>\n",
       "      <td>3.0580</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>-200.0</td>\n",
       "      <td>-200.00</td>\n",
       "      <td>-1135.22</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-22</th>\n",
       "      <td>2.93</td>\n",
       "      <td>0.06</td>\n",
       "      <td>2.850</td>\n",
       "      <td>3.0490</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>-600.0</td>\n",
       "      <td>-600.00</td>\n",
       "      <td>-1735.22</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-23</th>\n",
       "      <td>2.96</td>\n",
       "      <td>0.03</td>\n",
       "      <td>2.882</td>\n",
       "      <td>3.0415</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>-300.0</td>\n",
       "      <td>-300.00</td>\n",
       "      <td>-2035.22</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-26</th>\n",
       "      <td>2.97</td>\n",
       "      <td>0.01</td>\n",
       "      <td>2.916</td>\n",
       "      <td>3.0335</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>-100.0</td>\n",
       "      <td>-100.00</td>\n",
       "      <td>-2135.22</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-27</th>\n",
       "      <td>2.92</td>\n",
       "      <td>-0.05</td>\n",
       "      <td>2.930</td>\n",
       "      <td>3.0210</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>500.0</td>\n",
       "      <td>500.00</td>\n",
       "      <td>-1635.22</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-28</th>\n",
       "      <td>2.87</td>\n",
       "      <td>-0.05</td>\n",
       "      <td>2.930</td>\n",
       "      <td>3.0060</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>500.0</td>\n",
       "      <td>500.00</td>\n",
       "      <td>-1135.22</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-01</th>\n",
       "      <td>2.88</td>\n",
       "      <td>0.01</td>\n",
       "      <td>2.920</td>\n",
       "      <td>2.9925</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>-100.0</td>\n",
       "      <td>-100.00</td>\n",
       "      <td>-1235.22</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-02</th>\n",
       "      <td>2.86</td>\n",
       "      <td>-0.02</td>\n",
       "      <td>2.900</td>\n",
       "      <td>2.9770</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>200.0</td>\n",
       "      <td>200.00</td>\n",
       "      <td>-1035.22</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-05</th>\n",
       "      <td>2.85</td>\n",
       "      <td>-0.01</td>\n",
       "      <td>2.876</td>\n",
       "      <td>2.9635</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>100.0</td>\n",
       "      <td>100.00</td>\n",
       "      <td>-935.22</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-06</th>\n",
       "      <td>2.89</td>\n",
       "      <td>0.04</td>\n",
       "      <td>2.870</td>\n",
       "      <td>2.9545</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>-400.0</td>\n",
       "      <td>-400.00</td>\n",
       "      <td>-1335.22</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-07</th>\n",
       "      <td>2.87</td>\n",
       "      <td>-0.02</td>\n",
       "      <td>2.870</td>\n",
       "      <td>2.9425</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>200.0</td>\n",
       "      <td>200.00</td>\n",
       "      <td>-1135.22</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-08</th>\n",
       "      <td>2.89</td>\n",
       "      <td>0.02</td>\n",
       "      <td>2.872</td>\n",
       "      <td>2.9305</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>-200.0</td>\n",
       "      <td>-200.00</td>\n",
       "      <td>-1335.22</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-09</th>\n",
       "      <td>2.90</td>\n",
       "      <td>0.01</td>\n",
       "      <td>2.880</td>\n",
       "      <td>2.9180</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>-100.0</td>\n",
       "      <td>-100.00</td>\n",
       "      <td>-1435.22</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-12</th>\n",
       "      <td>2.91</td>\n",
       "      <td>0.01</td>\n",
       "      <td>2.892</td>\n",
       "      <td>2.9045</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>-100.0</td>\n",
       "      <td>-100.00</td>\n",
       "      <td>-1535.22</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-13</th>\n",
       "      <td>2.87</td>\n",
       "      <td>-0.04</td>\n",
       "      <td>2.888</td>\n",
       "      <td>2.8925</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>400.0</td>\n",
       "      <td>400.00</td>\n",
       "      <td>-1135.22</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-14</th>\n",
       "      <td>2.86</td>\n",
       "      <td>-0.01</td>\n",
       "      <td>2.886</td>\n",
       "      <td>2.8845</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>100.0</td>\n",
       "      <td>100.00</td>\n",
       "      <td>-1035.22</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-15</th>\n",
       "      <td>2.89</td>\n",
       "      <td>0.03</td>\n",
       "      <td>2.886</td>\n",
       "      <td>2.8820</td>\n",
       "      <td>10000</td>\n",
       "      <td>17.34</td>\n",
       "      <td>300.0</td>\n",
       "      <td>282.66</td>\n",
       "      <td>-752.56</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-16</th>\n",
       "      <td>2.86</td>\n",
       "      <td>-0.03</td>\n",
       "      <td>2.878</td>\n",
       "      <td>2.8850</td>\n",
       "      <td>10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>-300.0</td>\n",
       "      <td>-300.00</td>\n",
       "      <td>-1052.56</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-06-26</th>\n",
       "      <td>2.52</td>\n",
       "      <td>-0.03</td>\n",
       "      <td>2.574</td>\n",
       "      <td>2.6410</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>300.0</td>\n",
       "      <td>300.00</td>\n",
       "      <td>-533.44</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-06-27</th>\n",
       "      <td>2.46</td>\n",
       "      <td>-0.06</td>\n",
       "      <td>2.544</td>\n",
       "      <td>2.6315</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>600.0</td>\n",
       "      <td>600.00</td>\n",
       "      <td>66.56</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-06-28</th>\n",
       "      <td>2.44</td>\n",
       "      <td>-0.02</td>\n",
       "      <td>2.514</td>\n",
       "      <td>2.6235</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>200.0</td>\n",
       "      <td>200.00</td>\n",
       "      <td>266.56</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-06-29</th>\n",
       "      <td>2.49</td>\n",
       "      <td>0.05</td>\n",
       "      <td>2.492</td>\n",
       "      <td>2.6155</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>-500.0</td>\n",
       "      <td>-500.00</td>\n",
       "      <td>-233.44</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-02</th>\n",
       "      <td>2.40</td>\n",
       "      <td>-0.09</td>\n",
       "      <td>2.462</td>\n",
       "      <td>2.6035</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>900.0</td>\n",
       "      <td>900.00</td>\n",
       "      <td>666.56</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-03</th>\n",
       "      <td>2.41</td>\n",
       "      <td>0.01</td>\n",
       "      <td>2.440</td>\n",
       "      <td>2.5895</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>-100.0</td>\n",
       "      <td>-100.00</td>\n",
       "      <td>566.56</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-04</th>\n",
       "      <td>2.39</td>\n",
       "      <td>-0.02</td>\n",
       "      <td>2.426</td>\n",
       "      <td>2.5740</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>200.0</td>\n",
       "      <td>200.00</td>\n",
       "      <td>766.56</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-05</th>\n",
       "      <td>2.39</td>\n",
       "      <td>0.00</td>\n",
       "      <td>2.416</td>\n",
       "      <td>2.5590</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>-0.0</td>\n",
       "      <td>-0.00</td>\n",
       "      <td>766.56</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-06</th>\n",
       "      <td>2.42</td>\n",
       "      <td>0.03</td>\n",
       "      <td>2.402</td>\n",
       "      <td>2.5455</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>-300.0</td>\n",
       "      <td>-300.00</td>\n",
       "      <td>466.56</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-09</th>\n",
       "      <td>2.50</td>\n",
       "      <td>0.08</td>\n",
       "      <td>2.422</td>\n",
       "      <td>2.5380</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>-800.0</td>\n",
       "      <td>-800.00</td>\n",
       "      <td>-333.44</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-10</th>\n",
       "      <td>2.49</td>\n",
       "      <td>-0.01</td>\n",
       "      <td>2.438</td>\n",
       "      <td>2.5295</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>100.0</td>\n",
       "      <td>100.00</td>\n",
       "      <td>-233.44</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-11</th>\n",
       "      <td>2.45</td>\n",
       "      <td>-0.04</td>\n",
       "      <td>2.450</td>\n",
       "      <td>2.5175</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>400.0</td>\n",
       "      <td>400.00</td>\n",
       "      <td>166.56</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-12</th>\n",
       "      <td>2.51</td>\n",
       "      <td>0.06</td>\n",
       "      <td>2.474</td>\n",
       "      <td>2.5095</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>-600.0</td>\n",
       "      <td>-600.00</td>\n",
       "      <td>-433.44</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-13</th>\n",
       "      <td>2.51</td>\n",
       "      <td>0.00</td>\n",
       "      <td>2.492</td>\n",
       "      <td>2.5010</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>-0.0</td>\n",
       "      <td>-0.00</td>\n",
       "      <td>-433.44</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-16</th>\n",
       "      <td>2.49</td>\n",
       "      <td>-0.02</td>\n",
       "      <td>2.490</td>\n",
       "      <td>2.4915</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>200.0</td>\n",
       "      <td>200.00</td>\n",
       "      <td>-233.44</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-17</th>\n",
       "      <td>2.48</td>\n",
       "      <td>-0.01</td>\n",
       "      <td>2.488</td>\n",
       "      <td>2.4850</td>\n",
       "      <td>-10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>100.0</td>\n",
       "      <td>100.00</td>\n",
       "      <td>-133.44</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-18</th>\n",
       "      <td>2.46</td>\n",
       "      <td>-0.02</td>\n",
       "      <td>2.490</td>\n",
       "      <td>2.4775</td>\n",
       "      <td>10000</td>\n",
       "      <td>14.76</td>\n",
       "      <td>-200.0</td>\n",
       "      <td>-214.76</td>\n",
       "      <td>-348.20</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-19</th>\n",
       "      <td>2.48</td>\n",
       "      <td>0.02</td>\n",
       "      <td>2.484</td>\n",
       "      <td>2.4720</td>\n",
       "      <td>10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>200.0</td>\n",
       "      <td>200.00</td>\n",
       "      <td>-148.20</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-20</th>\n",
       "      <td>2.54</td>\n",
       "      <td>0.06</td>\n",
       "      <td>2.490</td>\n",
       "      <td>2.4690</td>\n",
       "      <td>10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>600.0</td>\n",
       "      <td>600.00</td>\n",
       "      <td>451.80</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-23</th>\n",
       "      <td>2.57</td>\n",
       "      <td>0.03</td>\n",
       "      <td>2.506</td>\n",
       "      <td>2.4700</td>\n",
       "      <td>10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>300.0</td>\n",
       "      <td>300.00</td>\n",
       "      <td>751.80</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-24</th>\n",
       "      <td>2.61</td>\n",
       "      <td>0.04</td>\n",
       "      <td>2.532</td>\n",
       "      <td>2.4745</td>\n",
       "      <td>10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>400.0</td>\n",
       "      <td>400.00</td>\n",
       "      <td>1151.80</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-25</th>\n",
       "      <td>2.61</td>\n",
       "      <td>0.00</td>\n",
       "      <td>2.562</td>\n",
       "      <td>2.4820</td>\n",
       "      <td>10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.00</td>\n",
       "      <td>1151.80</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-26</th>\n",
       "      <td>2.58</td>\n",
       "      <td>-0.03</td>\n",
       "      <td>2.582</td>\n",
       "      <td>2.4890</td>\n",
       "      <td>10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>-300.0</td>\n",
       "      <td>-300.00</td>\n",
       "      <td>851.80</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-27</th>\n",
       "      <td>2.58</td>\n",
       "      <td>0.00</td>\n",
       "      <td>2.590</td>\n",
       "      <td>2.4935</td>\n",
       "      <td>10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.00</td>\n",
       "      <td>851.80</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-30</th>\n",
       "      <td>2.59</td>\n",
       "      <td>0.01</td>\n",
       "      <td>2.594</td>\n",
       "      <td>2.5030</td>\n",
       "      <td>10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>100.0</td>\n",
       "      <td>100.00</td>\n",
       "      <td>951.80</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-31</th>\n",
       "      <td>2.60</td>\n",
       "      <td>0.01</td>\n",
       "      <td>2.592</td>\n",
       "      <td>2.5125</td>\n",
       "      <td>10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>100.0</td>\n",
       "      <td>100.00</td>\n",
       "      <td>1051.80</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-08-01</th>\n",
       "      <td>2.53</td>\n",
       "      <td>-0.07</td>\n",
       "      <td>2.576</td>\n",
       "      <td>2.5195</td>\n",
       "      <td>10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>-700.0</td>\n",
       "      <td>-700.00</td>\n",
       "      <td>351.80</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-08-02</th>\n",
       "      <td>2.48</td>\n",
       "      <td>-0.05</td>\n",
       "      <td>2.556</td>\n",
       "      <td>2.5240</td>\n",
       "      <td>10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>-500.0</td>\n",
       "      <td>-500.00</td>\n",
       "      <td>-148.20</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-08-03</th>\n",
       "      <td>2.46</td>\n",
       "      <td>-0.02</td>\n",
       "      <td>2.532</td>\n",
       "      <td>2.5260</td>\n",
       "      <td>10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>-200.0</td>\n",
       "      <td>-200.00</td>\n",
       "      <td>-348.20</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-08-06</th>\n",
       "      <td>2.46</td>\n",
       "      <td>0.00</td>\n",
       "      <td>2.506</td>\n",
       "      <td>2.5240</td>\n",
       "      <td>10000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.00</td>\n",
       "      <td>-348.20</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>126 rows × 9 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "            close  change    ma5    ma20    pos    fee     pnl   netpnl  \\\n",
       "date                                                                      \n",
       "2018-01-29   3.12   -0.05  3.156  3.0445      0   0.00    -0.0    -0.00   \n",
       "2018-01-30   3.07   -0.05  3.136  3.0525  10000  18.42  -500.0  -518.42   \n",
       "2018-01-31   3.11    0.04  3.124  3.0625  10000   0.00   400.0   400.00   \n",
       "2018-02-01   3.13    0.02  3.120  3.0730  10000   0.00   200.0   200.00   \n",
       "2018-02-02   3.15    0.02  3.116  3.0840  10000   0.00   200.0   200.00   \n",
       "2018-02-05   3.18    0.03  3.128  3.0960  10000   0.00   300.0   300.00   \n",
       "2018-02-06   3.11   -0.07  3.136  3.1030  10000   0.00  -700.0  -700.00   \n",
       "2018-02-07   3.02   -0.09  3.118  3.1040  10000   0.00  -900.0  -900.00   \n",
       "2018-02-08   2.94   -0.08  3.080  3.1015  10000   0.00  -800.0  -800.00   \n",
       "2018-02-09   2.80   -0.14  3.010  3.0905 -10000  16.80  1400.0  1383.20   \n",
       "2018-02-12   2.80    0.00  2.934  3.0785 -10000   0.00    -0.0    -0.00   \n",
       "2018-02-13   2.85    0.05  2.882  3.0680 -10000   0.00  -500.0  -500.00   \n",
       "2018-02-14   2.87    0.02  2.852  3.0580 -10000   0.00  -200.0  -200.00   \n",
       "2018-02-22   2.93    0.06  2.850  3.0490 -10000   0.00  -600.0  -600.00   \n",
       "2018-02-23   2.96    0.03  2.882  3.0415 -10000   0.00  -300.0  -300.00   \n",
       "2018-02-26   2.97    0.01  2.916  3.0335 -10000   0.00  -100.0  -100.00   \n",
       "2018-02-27   2.92   -0.05  2.930  3.0210 -10000   0.00   500.0   500.00   \n",
       "2018-02-28   2.87   -0.05  2.930  3.0060 -10000   0.00   500.0   500.00   \n",
       "2018-03-01   2.88    0.01  2.920  2.9925 -10000   0.00  -100.0  -100.00   \n",
       "2018-03-02   2.86   -0.02  2.900  2.9770 -10000   0.00   200.0   200.00   \n",
       "2018-03-05   2.85   -0.01  2.876  2.9635 -10000   0.00   100.0   100.00   \n",
       "2018-03-06   2.89    0.04  2.870  2.9545 -10000   0.00  -400.0  -400.00   \n",
       "2018-03-07   2.87   -0.02  2.870  2.9425 -10000   0.00   200.0   200.00   \n",
       "2018-03-08   2.89    0.02  2.872  2.9305 -10000   0.00  -200.0  -200.00   \n",
       "2018-03-09   2.90    0.01  2.880  2.9180 -10000   0.00  -100.0  -100.00   \n",
       "2018-03-12   2.91    0.01  2.892  2.9045 -10000   0.00  -100.0  -100.00   \n",
       "2018-03-13   2.87   -0.04  2.888  2.8925 -10000   0.00   400.0   400.00   \n",
       "2018-03-14   2.86   -0.01  2.886  2.8845 -10000   0.00   100.0   100.00   \n",
       "2018-03-15   2.89    0.03  2.886  2.8820  10000  17.34   300.0   282.66   \n",
       "2018-03-16   2.86   -0.03  2.878  2.8850  10000   0.00  -300.0  -300.00   \n",
       "...           ...     ...    ...     ...    ...    ...     ...      ...   \n",
       "2018-06-26   2.52   -0.03  2.574  2.6410 -10000   0.00   300.0   300.00   \n",
       "2018-06-27   2.46   -0.06  2.544  2.6315 -10000   0.00   600.0   600.00   \n",
       "2018-06-28   2.44   -0.02  2.514  2.6235 -10000   0.00   200.0   200.00   \n",
       "2018-06-29   2.49    0.05  2.492  2.6155 -10000   0.00  -500.0  -500.00   \n",
       "2018-07-02   2.40   -0.09  2.462  2.6035 -10000   0.00   900.0   900.00   \n",
       "2018-07-03   2.41    0.01  2.440  2.5895 -10000   0.00  -100.0  -100.00   \n",
       "2018-07-04   2.39   -0.02  2.426  2.5740 -10000   0.00   200.0   200.00   \n",
       "2018-07-05   2.39    0.00  2.416  2.5590 -10000   0.00    -0.0    -0.00   \n",
       "2018-07-06   2.42    0.03  2.402  2.5455 -10000   0.00  -300.0  -300.00   \n",
       "2018-07-09   2.50    0.08  2.422  2.5380 -10000   0.00  -800.0  -800.00   \n",
       "2018-07-10   2.49   -0.01  2.438  2.5295 -10000   0.00   100.0   100.00   \n",
       "2018-07-11   2.45   -0.04  2.450  2.5175 -10000   0.00   400.0   400.00   \n",
       "2018-07-12   2.51    0.06  2.474  2.5095 -10000   0.00  -600.0  -600.00   \n",
       "2018-07-13   2.51    0.00  2.492  2.5010 -10000   0.00    -0.0    -0.00   \n",
       "2018-07-16   2.49   -0.02  2.490  2.4915 -10000   0.00   200.0   200.00   \n",
       "2018-07-17   2.48   -0.01  2.488  2.4850 -10000   0.00   100.0   100.00   \n",
       "2018-07-18   2.46   -0.02  2.490  2.4775  10000  14.76  -200.0  -214.76   \n",
       "2018-07-19   2.48    0.02  2.484  2.4720  10000   0.00   200.0   200.00   \n",
       "2018-07-20   2.54    0.06  2.490  2.4690  10000   0.00   600.0   600.00   \n",
       "2018-07-23   2.57    0.03  2.506  2.4700  10000   0.00   300.0   300.00   \n",
       "2018-07-24   2.61    0.04  2.532  2.4745  10000   0.00   400.0   400.00   \n",
       "2018-07-25   2.61    0.00  2.562  2.4820  10000   0.00     0.0     0.00   \n",
       "2018-07-26   2.58   -0.03  2.582  2.4890  10000   0.00  -300.0  -300.00   \n",
       "2018-07-27   2.58    0.00  2.590  2.4935  10000   0.00     0.0     0.00   \n",
       "2018-07-30   2.59    0.01  2.594  2.5030  10000   0.00   100.0   100.00   \n",
       "2018-07-31   2.60    0.01  2.592  2.5125  10000   0.00   100.0   100.00   \n",
       "2018-08-01   2.53   -0.07  2.576  2.5195  10000   0.00  -700.0  -700.00   \n",
       "2018-08-02   2.48   -0.05  2.556  2.5240  10000   0.00  -500.0  -500.00   \n",
       "2018-08-03   2.46   -0.02  2.532  2.5260  10000   0.00  -200.0  -200.00   \n",
       "2018-08-06   2.46    0.00  2.506  2.5240  10000   0.00     0.0     0.00   \n",
       "\n",
       "             cumpnl  \n",
       "date                 \n",
       "2018-01-29    -0.00  \n",
       "2018-01-30  -518.42  \n",
       "2018-01-31  -118.42  \n",
       "2018-02-01    81.58  \n",
       "2018-02-02   281.58  \n",
       "2018-02-05   581.58  \n",
       "2018-02-06  -118.42  \n",
       "2018-02-07 -1018.42  \n",
       "2018-02-08 -1818.42  \n",
       "2018-02-09  -435.22  \n",
       "2018-02-12  -435.22  \n",
       "2018-02-13  -935.22  \n",
       "2018-02-14 -1135.22  \n",
       "2018-02-22 -1735.22  \n",
       "2018-02-23 -2035.22  \n",
       "2018-02-26 -2135.22  \n",
       "2018-02-27 -1635.22  \n",
       "2018-02-28 -1135.22  \n",
       "2018-03-01 -1235.22  \n",
       "2018-03-02 -1035.22  \n",
       "2018-03-05  -935.22  \n",
       "2018-03-06 -1335.22  \n",
       "2018-03-07 -1135.22  \n",
       "2018-03-08 -1335.22  \n",
       "2018-03-09 -1435.22  \n",
       "2018-03-12 -1535.22  \n",
       "2018-03-13 -1135.22  \n",
       "2018-03-14 -1035.22  \n",
       "2018-03-15  -752.56  \n",
       "2018-03-16 -1052.56  \n",
       "...             ...  \n",
       "2018-06-26  -533.44  \n",
       "2018-06-27    66.56  \n",
       "2018-06-28   266.56  \n",
       "2018-06-29  -233.44  \n",
       "2018-07-02   666.56  \n",
       "2018-07-03   566.56  \n",
       "2018-07-04   766.56  \n",
       "2018-07-05   766.56  \n",
       "2018-07-06   466.56  \n",
       "2018-07-09  -333.44  \n",
       "2018-07-10  -233.44  \n",
       "2018-07-11   166.56  \n",
       "2018-07-12  -433.44  \n",
       "2018-07-13  -433.44  \n",
       "2018-07-16  -233.44  \n",
       "2018-07-17  -133.44  \n",
       "2018-07-18  -348.20  \n",
       "2018-07-19  -148.20  \n",
       "2018-07-20   451.80  \n",
       "2018-07-23   751.80  \n",
       "2018-07-24  1151.80  \n",
       "2018-07-25  1151.80  \n",
       "2018-07-26   851.80  \n",
       "2018-07-27   851.80  \n",
       "2018-07-30   951.80  \n",
       "2018-07-31  1051.80  \n",
       "2018-08-01   351.80  \n",
       "2018-08-02  -148.20  \n",
       "2018-08-03  -348.20  \n",
       "2018-08-06  -348.20  \n",
       "\n",
       "[126 rows x 9 columns]"
      ]
     },
     "execution_count": 23,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df['pnl'] = df['change']*df['pos']\n",
    "df['netpnl'] = df['pnl'] - df['fee']\n",
    "df['cumpnl'] = df['netpnl'].cumsum()\n",
    "df"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 28,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<matplotlib.axes._subplots.AxesSubplot at 0x1ccaffff828>"
      ]
     },
     "execution_count": 28,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAZUAAAEKCAYAAADaa8itAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMS4wLCBo\ndHRwOi8vbWF0cGxvdGxpYi5vcmcvpW3flQAAIABJREFUeJzsvXl4W+d95/t5sZMASIIEJJGiRIqy\nvMi7JDteYiVp4sTO5iROE+c2qZMmVpomc/tMm07cm7YznZnMTZc7nds1UfZMmzhpNruNEzdJk8h2\nvImyvMi2bAkSKYqUBJIASIDY8c4f5xwQILESCwny/TwPH5LvOTg4IIHzO7/t+xNSShQKhUKhaASm\n1T4BhUKhUKwflFFRKBQKRcNQRkWhUCgUDUMZFYVCoVA0DGVUFAqFQtEwlFFRKBQKRcNQRkWhUCgU\nDUMZFYVCoVA0DGVUFAqFQtEwLKt9AvXi9Xrl8PDwap+GQqFQtBWjo6PTUkpfo4/b9kZleHiYw4cP\nr/ZpKBQKRVshhBhrxnFV+EuhUCgUDUMZFYVCoVA0DGVUFAqFQtEwlFFRKBQKRcNQRkWhUCgUDUMZ\nFYVCoVA0DGVUFAqFQtEwlFFRrAuePxvmVyemW/qc6UyW+54cJ5nOtvR5FYq1jDIqinXBn/7LMe75\n+mHCsVTLnvMXxwPc+73n+OXLgZY9p0Kx1lFGRdH2JNIZnpkIE01m+MYT4y173sNjQQDOBhda9pwK\nxVpHGRVF23Nsco5kOovbbuErj55qWTjqiG5UpsLxljyfQtEOKKOiaHtGT2sX9//89su5MJ/g/qNn\nm/6cyXSWZyZCAEwqo6JQ5Gh7QUmFYnQsyPbeTu7cs5UvPuznCw/7effeQYQQTXvOY5NhEuksJgGT\noVjTnkex8ZgKx3jfw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cBcYNmu2EUuZBiE+irl/xy4\nqUt/UWkXEcd4kxjYTBib6NCvdNO58njdCtR9Ad8mLr1WsX0p2yxilD9KLE0bLTXQrxCe9hPg4/xc\nrES4iVii9wax8mpym3POI5b3rQUuL6Xflsf7PN8XVsgOp76rS/pekXkXpr7vZJnXm7QJmJYNelU2\ntnuIEUiV/Cxi1ck6YEEp/fm04w0ioD0QdVXKn07nJcXt7NqWaWvSpvcbrqt9iNU2RV3dRfvl39/I\nc6wD7qVlSXGWGR+UuiKW2i9PXUaBr9axi4hPjhFLaD8aFLsybz3wtS59XDu71hKxjaINbpoINtGh\nX2mnc6eX7qgXQgjRM3RHvRBCiJ4hpyKEEKJnyKkIIYToGXIqQggheoacihBCiJ4hpyLE/4GZLTSz\n6zrkzzGz43anTkI0iZyKEP1lDrExqRBfCnSfihA1yb2dfkDc6PYhcZPjZuBK4k7/tcQ+XzOAJzNv\nM9s3J72PuOt6K/Ajd//H7tRfiH4ipyJEDczsZOJZGSPElhYriIcaLXH3TVlmEfCBu99jZg8AT7r7\no5k3SmzXssbMRoBb3X2XN+8TYtAYaloBISYYpwNPuPtWADP7Q6Z/PZ3JfsReSs+0CuZOvKcBy0q7\n4E/uu8ZC7EbkVISoT9Xl/QPAHHdfaWZzgTMryuwBfOzuM/qnmhDNokC9EPVYDpxvZlPMbCrxUDeI\nx8aO5zbul5TKb8k8PJ6pscHMLgKw4MTdp7oQ/UcxFSFqUgrUv03sKPsm8C/iOS5vE7tAT3X3uWb2\nLeDXxI68FxI7Zv+KeBjSJOBhd795h5MIMUGRUxFCCNEzNP0lhBCiZ8ipCCGE6BlyKkIIIXqGnIoQ\nQoieIacihBCiZ8ipCCGE6BlyKkIIIXqGnIoQQoie8V/f1aXZ3Az+bwAAAABJRU5ErkJggg==\n",
      "text/plain": [
       "<matplotlib.figure.Figure at 0x1ccaffed668>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "df['cumpnl'].plot()"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.6.3"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
